更新 views.py
This commit is contained in:
@@ -89,7 +89,7 @@ def login():
|
||||
db_manager = DatabaseManager()
|
||||
|
||||
result = db_manager.valid_login(number, password) # 获取验证结果
|
||||
|
||||
print(result)
|
||||
# 确保用户已验证且活跃(未被禁用)
|
||||
if result['valid'] and result['status'] == 1:
|
||||
# 登录成功
|
||||
|
||||
Reference in New Issue
Block a user