Подготовка к замене AuthRejectReason

This commit is contained in:
2026-07-14 12:38:23 +03:00
parent c0cefe2f32
commit 5c39031f04
13 changed files with 251 additions and 18 deletions

View File

@@ -16,6 +16,16 @@ class AccountManager:
Реализует методы работы с Аккаунтами
"""
@classmethod
def check_account(cls, username: str) -> None:
"""
Проверяет Аккаунт с указанным именем
"""
account = AccountModel.objects.filter(username=username).first()
if account is None:
raise ValueError("Account not found")
@classmethod
def restore_account(cls, account: AccountModel) -> None:
"""