Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #8129: Modified the password reset email template to use a URL …

…lookup, so that the email doesn't require customization based on the way that the reset view is deployed. Thanks to davenaff for the report and fix.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@8517 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 78c2c95ed3209c2f0d1ad2c920a580a71bf9807b 1 parent 57b9061
Russell Keith-Magee authored August 24, 2008
2  django/contrib/admin/templates/registration/password_reset_email.html
@@ -4,7 +4,7 @@
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 }}{% url django.contrib.auth.views.password_reset_confirm uidb36=uid, token=token %}
8 8
 {% endblock %}
9 9
 {% trans "Your username, in case you've forgotten:" %} {{ user.username }}
10 10
 

0 notes on commit 78c2c95

Please sign in to comment.
Something went wrong with that request. Please try again.