Set logged-in flag after manual login

Not just after loading a session
This commit is contained in:
Andrew Ferrazzutti 2022-03-06 03:18:41 -05:00
parent bb3d7057b3
commit 8c2775056d
1 changed files with 1 additions and 0 deletions

View File

@ -592,6 +592,7 @@ class User(DBUser, BaseUser):
self.oauth_credential = oauth_credential
self.client = Client(self, log=self.log.getChild("ktclient"))
await self.save()
self._is_logged_in = True
try:
self._logged_in_info = await self.client.fetch_logged_in_user(post_login=True)
self._logged_in_info_time = time.monotonic()