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
+1
View File
@@ -38,6 +38,7 @@ jinja2
# JWT认证
python-jose[cryptography]
passlib[bcrypt]
bcrypt
# 邮箱验证
email-validator
+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)