Explorar o código

一键登录接口返回password标识

locky %!s(int64=3) %!d(string=hai) anos
pai
achega
77eb043f43
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      Controller/UserController.py

+ 3 - 1
Controller/UserController.py

@@ -2100,7 +2100,9 @@ class oneClickLoginView(TemplateView):
                 res['userEmail'] = ''
                 res['userIconUrl'] = ''
                 res['subscribe_email'] = ''
-                if not user_qs[0]['password']:  # 没有设置密码,返回标识
+                if user_qs[0]['password']:  # 设置密码,返回已设置标识
+                    res['password'] = '1'
+                else:
                     res['password'] = ''
                 return response.json(0, res)