def login(self, username='admin', password='admin'):
        self.session = requests.Session()
        login = self.session.post(self.url+'login',
                                  data={'username': username,
                                        'password': password})
        if login.text == 'Ok.':
            self._is_authenticated = True
        else:
            return login.text
Method to authenticate the qBittorrent Client.
dataset/ETHPy150Open v1k45/python-qBittorrent/qbittorrent/client.py/Client.login