set username default server-side

This commit is contained in:
Jakob Kramer
2012-03-25 21:51:09 +02:00
parent 6c49799deb
commit 952b97d5a0
3 changed files with 2 additions and 8 deletions

View File

@@ -236,7 +236,8 @@ def forgot_password(request):
Sends an email with an url to renew forgotten password
"""
fp_form = auth_forms.ForgotPassForm(request.POST)
fp_form = auth_forms.ForgotPassForm(request.POST,
username=request.GET.get('username'))
if request.method == 'POST' and fp_form.validate():