瀏覽代碼

fix: 恢复 sms login 员工签约检查(无数据放行/有数据校验)

alphah 2 周之前
父節點
當前提交
82b99a31a5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/app/api/v1/module_system/auth/service.py

+ 1 - 1
backend/app/api/v1/module_system/auth/service.py

@@ -212,7 +212,7 @@ class LoginService:
         emp_result = await db.execute(emp_stmt)
         employee = emp_result.scalar_one_or_none()
         if employee and employee.status != "EMPLOYEE_ACTIVATED":
-            raise CustomException(msg="用户不存在")
+            raise CustomException(msg=("用户不存在" + employee))
 
         # 更新最后登录时间(记录日志即可,不阻塞登录)
         from datetime import datetime