修正:创建用户时,如果用户名包含大写字母,此用户将无法登陆。

pull/105/head
Apex Liu 2018-06-13 18:06:18 +08:00
parent 76a81386e5
commit 30dd82ba12
1 changed files with 1 additions and 1 deletions

View File

@ -536,7 +536,7 @@ class DoUpdateUserHandler(TPBaseJsonHandler):
args['id'] = int(args['id'])
args['role'] = int(args['role'])
args['auth_type'] = int(args['auth_type'])
args['username'] = args['username'].strip()
args['username'] = args['username'].strip().lower()
args['surname'] = args['surname'].strip()
args['email'] = args['email'].strip()
args['mobile'] = args['mobile'].strip()