Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[djangoproject.com] Fixed password resets.

git-svn-id: http://code.djangoproject.com/svn/djangoproject.com@9486 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 24b163b7b7ac33b4f964aaa2d3b47096adaf5f13 1 parent 90d1dce
jacob authored
View
9 django_website/apps/accounts/urls.py
@@ -9,5 +9,14 @@
{'form_class': RegistrationFormUniqueEmail},
name='registration_register',
),
+ url(
+ r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',
+ 'django.contrib.auth.views.password_reset_confirm',
+ name='auth_password_reset_confim',
+ ),
+ url(
+ r'^reset/done/$',
+ 'django.contrib.auth.views.password_reset_complete'
+ ),
(r'', include('registration.urls')),
)
View
18 django_website/templates/registration/password_reset_email.html
@@ -1,11 +1,15 @@
-You're receiving this e-mail because you requested a password reset for your user account at djangoproject.com.
+{% load i18n %}{% autoescape off %}
+{% trans "You're receiving this e-mail because you requested a password reset" %}
+{% blocktrans %}for your user account at {{ site_name }}{% endblocktrans %}.
-Your new password is: {{ new_password }}.
+{% trans "Please go to the following page and choose a new password:" %}
+{% block reset_link %}
+{{ protocol }}://{{ domain }}{% url auth_password_reset_confim uidb36=uid, token=token %}
+{% endblock %}
+{% trans "Your username, in case you've forgotten:" %} {{ user.username }}
-Feel free to change this password by going to this page:
+{% trans "Thanks for using our site!" %}
-http://www.djangoproject.com/accounts/password/change/
+{% blocktrans %}The {{ site_name }} team{% endblocktrans %}
-Your username, in case you've forgotten: {{ user.username }}
-
-Thanks!
+{% endautoescape %}
Please sign in to comment.
Something went wrong with that request. Please try again.