Ticket #8451: fix_password_reset_confirm_path.diff
File fix_password_reset_confirm_path.diff, 1.8 KB (added by , 16 years ago) |
---|
-
django/contrib/admin/templates/registration/password_reset_email.html
4 4 5 5 {% trans "Please go to the following page and choose a new password:" %} 6 6 {% block reset_link %} 7 {{ protocol }}://{{ domain }} /reset/{{ uid }}-{{ token }}/7 {{ protocol }}://{{ domain }}{{ path }} 8 8 {% endblock %} 9 9 {% trans "Your username, in case you've forgotten:" %} {{ user.username }} 10 10 -
django/contrib/auth/forms.py
2 2 from django.contrib.auth import authenticate 3 3 from django.contrib.auth.tokens import default_token_generator 4 4 from django.contrib.sites.models import Site 5 from django.core.urlresolvers import reverse 5 6 from django.template import Context, loader 6 7 from django import forms 7 8 from django.utils.translation import ugettext_lazy as _ … … 117 118 c = { 118 119 'email': user.email, 119 120 'domain': domain, 121 'path': reverse('django.contrib.auth.views.password_reset_confirm', 122 args=[int_to_base36(user.id), token_generator.make_token(user)]), 120 123 'site_name': site_name, 121 'uid': int_to_base36(user.id),122 124 'user': user, 123 'token': token_generator.make_token(user),124 125 'protocol': use_https and 'https' or 'http', 125 126 } 126 127 send_mail(_("Password reset on %s") % site_name,