fixed errors

This commit is contained in:
2025-11-27 17:24:48 +01:00
parent 50a5f371dd
commit 5c6798a647
3 changed files with 13 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ public class UpdateUserEndpoint(
return;
}
if (ckeckName != null)
if (ckeckName != null && ckeckName.Id != user.Id)
{
await Send.StringAsync("Ce nom d'utilisateur existe déjà.",409, cancellation: ct);
return;