This commit is contained in:
2026-03-04 22:32:46 +08:00
parent f6eb09eb9f
commit 87f053f380
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -21,6 +21,8 @@ def verify_password(plain_password: str, hashed_password: str) -> bool:
def get_password_hash(password: str) -> str:
if len(password.encode('utf-8')) > 72:
password = password[:72]
return pwd_context.hash(password)