new features

This commit is contained in:
Daniil
2026-02-27 23:33:56 +03:00
parent 937e58859a
commit dc04efe0fb
41 changed files with 2067 additions and 141 deletions
+4
View File
@@ -71,6 +71,10 @@ class UserRepository:
await self._session.refresh(user)
return user
async def update_password(self, user: User, new_hash: str) -> None:
user.password_hash = new_hash
await self._session.commit()
async def deactivate(self, user: User) -> None:
user.is_active = False
await self._session.commit()