Ver código fonte

fix: 补回 sms login 缺失的 auth 变量

alphah 2 semanas atrás
pai
commit
e36f2f975f
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      backend/app/api/v1/module_system/auth/service.py

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

@@ -216,6 +216,7 @@ class LoginService:
             raise CustomException(msg="用户不存在")
 
         # 更新最后登录时间
+        auth = AuthSchema(db=db)
         user = await UserCRUD(auth).update_last_login_crud(id=user.id)
         if not user:
             raise CustomException(msg="用户不存在")