This commit is contained in:
e4www
2026-01-30 16:34:56 +03:00
commit 12f2ceaf9b
27 changed files with 1331 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
from __future__ import annotations
from app.domain.users.entities import User
from app.domain.users.exceptions import UserAlreadyExists
def ensure_unique_email(*, existing_user: User | None) -> None:
if existing_user is not None:
raise UserAlreadyExists("User with this email already exists.")