cleanup
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user