mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-21 12:52:26 +00:00
fix: 统一状态检查逻辑并增强任务日志记录
修复多处状态检查不一致的问题,统一使用字符串"0"和"1"表示状态 增强任务调度器的日志记录功能,提供更详细的执行信息 修正前端任务状态显示标签样式和文案 更新Cron表达式解析逻辑以兼容APScheduler
This commit is contained in:
@@ -79,7 +79,7 @@ class LoginService:
|
||||
if not PwdUtil.verify_password(plain_password=login_form.password, password_hash=user.password):
|
||||
raise CustomException(msg="账号或密码错误")
|
||||
|
||||
if not user.status:
|
||||
if user.status == "1":
|
||||
raise CustomException(msg="用户已被停用")
|
||||
|
||||
# 更新最后登录时间
|
||||
|
||||
Reference in New Issue
Block a user