fix a activating bug

This commit is contained in:
Peidong Liu 2016-05-23 10:10:46 +08:00
parent 6dad5d9f4d
commit a28743c62f
1 changed files with 6 additions and 6 deletions

View File

@ -114,12 +114,12 @@ def register():
newuser.status = 'applying' newuser.status = 'applying'
newuser.user_group = cur_user.user_group newuser.user_group = cur_user.user_group
newuser.auth_method = cur_user.auth_method newuser.auth_method = cur_user.auth_method
newuser.e_mail = form.get('email','') newuser.e_mail = request.form.get('email','')
newuser.student_number = form.get('studentnumber', '') newuser.student_number = request.form.get('studentnumber', '')
newuser.department = form.get('department', '') newuser.department = request.form.get('department', '')
newuser.truename = form.get('truename', '') newuser.truename = request.form.get('truename', '')
newuser.tel = form.get('tel', '') newuser.tel = request.form.get('tel', '')
newuser.description = form.get('description', '') newuser.description = request.form.get('description', '')
result = G_usermgr.register(user = newuser) result = G_usermgr.register(user = newuser)
userManager.send_remind_activating_email(newuser.username) userManager.send_remind_activating_email(newuser.username)
return json.dumps(result) return json.dumps(result)