Fix bug in 720210ac08
This commit is contained in:
@@ -110,7 +110,7 @@ class AuthAPI(abc.ABC):
|
||||
|
||||
async def postprocess_login(self, user: User, user_info) -> None:
|
||||
existing_user = User.get_by_tgid(user_info.id)
|
||||
if existing_user != user:
|
||||
if existing_user and existing_user != user:
|
||||
await existing_user.log_out()
|
||||
asyncio.ensure_future(user.post_login(user_info), loop=self.loop)
|
||||
if user.command_status and user.command_status["action"] == "Login":
|
||||
|
||||
Reference in New Issue
Block a user