This commit is contained in:
2025-10-23 19:41:24 +02:00
parent c81a493fb1
commit ffb182e3ba
7 changed files with 180 additions and 643 deletions

View File

@@ -64,6 +64,15 @@ class AuthService:
return pwd_context.hash(password)
def _verify_password(self, plain: str, hashed: str) -> bool:
"""Verify a password against a hash.
Args:
plain: Plain text password
hashed: Hashed password
Returns:
bool: True if password matches, False otherwise
"""
try:
return pwd_context.verify(plain, hashed)
except Exception: