浏览代码

oauth/perfect接口添加解密逻辑1

tanghongbin 5 年之前
父节点
当前提交
fb4bb078f4
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. 4 1
      Controller/UserController.py

+ 4 - 1
Controller/UserController.py

@@ -2429,7 +2429,10 @@ class OauthPerfectView(TemplateView):
         tko = TokenObject(token)
         if password is None or authcode is None:
             return response.json(444, 'password,authcode')
-        authcode = authcode.strip()
+        authcode = CommonService.decode_data(authcode.strip())
+        if authcode is None:
+            return response.json(444, 'password,authcode')
+
         password = CommonService.decode_data(password.strip())
         if password is None:
             return response.json(444, 'password,authcode')