fix: address final-review hygiene items (pydantic config, cookie alias, argon2 exception scope)

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013PphXq1s43DNRj1uWKGXof
This commit is contained in:
Indiana
2026-07-20 16:00:35 +00:00
parent b8168b69a1
commit ed5313158d
4 changed files with 6 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
from argon2 import PasswordHasher
from argon2.exceptions import VerifyMismatchError
from argon2.exceptions import VerificationError
_hasher = PasswordHasher()
@@ -11,5 +11,5 @@ def hash_password(password: str) -> str:
def verify_password(password: str, password_hash: str) -> bool:
try:
return _hasher.verify(password_hash, password)
except VerifyMismatchError:
except VerificationError:
return False