diff --git a/DMBotNetwork/server.py b/DMBotNetwork/server.py index 0070231..56cbe9d 100644 --- a/DMBotNetwork/server.py +++ b/DMBotNetwork/server.py @@ -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: