Changing self._authorized property after log_out()

Making a client to `log_out()` doesn't remove the authorized status, allowing the client to bypass `client.is_user_authorized()`.
This commit is contained in:
Jon Besga 2018-04-14 18:14:14 +01:00 committed by GitHub
parent ace715e059
commit 882963c1c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -494,6 +494,7 @@ class TelegramClient(TelegramBareClient):
self.disconnect() self.disconnect()
self.session.delete() self.session.delete()
self._authorized = False
return True return True
def get_me(self, input_peer=False): def get_me(self, input_peer=False):