瀏覽代碼

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

alphah 2 周之前
父節點
當前提交
e36f2f975f
共有 1 個文件被更改,包括 1 次插入0 次删除
  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="用户不存在")