修复用户名带特殊符号时修改过期密码界面无法正确获取密码的问题

pull/205/head
horizonlin 2020-04-22 11:17:36 +08:00 committed by GitHub
parent 6b12da5eb8
commit edd6c1ecdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ import csv
import json
import os
import time
from urllib import parse
import urllib
import tornado.gen
from app.base import mail
@ -117,7 +117,7 @@ class ResetPasswordHandler(TPBaseHandler):
class ChangeExpiredPasswordHandler(TPBaseHandler):
def get(self):
_username = parse.unquote(self.get_argument('username', None))
_username = urllib.unquote(self.get_argument('username', None))
if _username is None:
return self.redirect('/')