Browse Source

一键登录接口返回password标识

locky 3 years ago
parent
commit
77eb043f43
1 changed files with 3 additions and 1 deletions
  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)