1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-19 10:26:17 +00:00

Enable user provide name in register

This commit is contained in:
zhengxie
2015-01-23 15:43:31 +08:00
parent e6081aead5
commit 109ed579fa
4 changed files with 44 additions and 19 deletions

View File

@@ -205,9 +205,9 @@ def register(request, backend, success_url=None, form_class=None,
if src:
form = form_class(initial={'email': src})
return render_to_response(template_name,
{ 'form': form,
'min_len': USER_PASSWORD_MIN_LENGTH,
'strong_pwd_required': USER_STRONG_PASSWORD_REQUIRED,
'level': USER_PASSWORD_STRENGTH_LEVEL,
}, context_instance=context)
return render_to_response(template_name, {
'form': form,
'min_len': USER_PASSWORD_MIN_LENGTH,
'strong_pwd_required': USER_STRONG_PASSWORD_REQUIRED,
'level': USER_PASSWORD_STRENGTH_LEVEL,
}, context_instance=context)