Skip to content

Commit

Permalink
Исправление бага с призрачными игроками (доступ оставался в кеше посл…
Browse files Browse the repository at this point in the history
…е удаления пользователя)
  • Loading branch information
themanyfaceddemon committed Aug 26, 2024
1 parent 5a12b67 commit e6f7d74
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions DMBotNetwork/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ async def db_change_password(self, username: str, new_password: str) -> bool:
try:
await self._connection.execute("UPDATE users SET password = ? WHERE username = ?", (hashed_password, username))
await self._connection.commit()
self._access_cache.pop(username, None)
return True

except Exception as e:
Expand Down

0 comments on commit e6f7d74

Please sign in to comment.