fix: 将 app/ 下的所有代码中与sql相关的所有隐式类型转换替换为显式类型转换

This commit is contained in:
jimmy-sketch
2025-07-24 12:30:24 +08:00
parent 4a16a9598f
commit 6647e5cd04
5 changed files with 10 additions and 7 deletions

View File

@@ -84,7 +84,7 @@ def authenticate_user_legacy(db: Session, name: str, password: str) -> Optional[
return None
# 3. 验证密码
if not user.pw_bcrypt:
if not (user.pw_bcrypt is None and user.pw_bcrypt != ""):
return None
# 4. 检查缓存