fix a activating bug
This commit is contained in:
parent
6dad5d9f4d
commit
a28743c62f
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue