fix: 将 app/ 下的所有代码中与sql相关的所有隐式类型转换替换为显式类型转换
This commit is contained in:
@@ -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. 检查缓存
|
||||
|
||||
Reference in New Issue
Block a user