Ticket #6905: password-reset-override-form.patch
File password-reset-override-form.patch, 820 bytes (added by , 17 years ago) |
---|
-
django/contrib/auth/views.py
64 64 return HttpResponseRedirect('%s?%s=%s' % (login_url, redirect_field_name, next)) 65 65 66 66 def password_reset(request, is_admin_site=False, template_name='registration/password_reset_form.html', 67 email_template_name='registration/password_reset_email.html'): 67 email_template_name='registration/password_reset_email.html', 68 password_reset_form = PasswordResetForm): 68 69 new_data, errors = {}, {} 69 form = PasswordResetForm()70 form = password_reset_form() 70 71 if request.POST: 71 72 new_data = request.POST.copy() 72 73 errors = form.get_validation_errors(new_data)