Procházet zdrojové kódy

Merge remote-tracking branch 'remotes/origin/dev' into test

tanghongbin před 5 roky
rodič
revize
e11aef8356
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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')