chenjunkai 7 년 전
부모
커밋
6bb2ab4ebd
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Controller/UserController.py

+ 1 - 1
Controller/UserController.py

@@ -489,7 +489,7 @@ class ForgetPwdView(TemplateView):
                 if reset_pwd is False:
                     tko = TokenObject()
                     rest = tko.generate(data={'userID': userID})
-                    token = rest['access_token'].decode('utf-8')
+                    token = rest['access_token']
 
                     reset_pwd = CommonService.RandomStr(6)
                     send_data = TemplateService.email_message(type='forget', language='en')