fix(auth): avoid redundant password hashing in registration races

This commit is contained in:
2026-11-15 21:59:08 +03:00
parent 869cff59d9
commit 78670b9fa6
5 changed files with 43 additions and 8 deletions
+4
View File
@@ -34,7 +34,11 @@ def check(result: httpx.Response, status: int, schema: str) -> dict:
401: "unauthorized",
404: "not_found",
409: "conflict",
413: "payload_too_large",
415: "unsupported_media_type",
429: "rate_limited",
500: "internal_error",
503: "unavailable",
}[status]
)
return payload