feat: account deletion request and active-user check

This commit is contained in:
2026-10-26 02:11:44 +01:00
parent 83bb5d9847
commit 0b5d18c4ee
27 changed files with 577 additions and 151 deletions

View File

@@ -21,7 +21,9 @@ pub async fn execute(deps: &RegisterDeps, cmd: RegisterCommand) -> Result<(), Do
));
}
if deps.user.find_by_username(&username).await?.is_some() {
if deps.user.find_by_username(&username).await?.is_some()
|| deps.user.is_username_retired(&username).await?
{
return Err(DomainError::ValidationError(
"Username already taken".into(),
));