Set logged-in flag after manual login
Not just after loading a session
This commit is contained in:
parent
bb3d7057b3
commit
8c2775056d
|
@ -592,6 +592,7 @@ class User(DBUser, BaseUser):
|
||||||
self.oauth_credential = oauth_credential
|
self.oauth_credential = oauth_credential
|
||||||
self.client = Client(self, log=self.log.getChild("ktclient"))
|
self.client = Client(self, log=self.log.getChild("ktclient"))
|
||||||
await self.save()
|
await self.save()
|
||||||
|
self._is_logged_in = True
|
||||||
try:
|
try:
|
||||||
self._logged_in_info = await self.client.fetch_logged_in_user(post_login=True)
|
self._logged_in_info = await self.client.fetch_logged_in_user(post_login=True)
|
||||||
self._logged_in_info_time = time.monotonic()
|
self._logged_in_info_time = time.monotonic()
|
||||||
|
|
Loading…
Reference in New Issue