Преглед изворни кода

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="用户不存在")