Django

Code

Changeset 9486

Show
Ignore:
Timestamp:
11/17/08 13:48:29 (2 months ago)
Author:
jacob
Message:

[djangoproject.com] Fixed password resets.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • djangoproject.com/django_website/apps/accounts/urls.py

    r7369 r9486  
    1010        name='registration_register', 
    1111    ), 
     12    url( 
     13        r'^reset/(?P<uidb36>[0-9A-Za-z]+)-(?P<token>.+)/$',  
     14        'django.contrib.auth.views.password_reset_confirm', 
     15        name='auth_password_reset_confim', 
     16    ), 
     17    url( 
     18        r'^reset/done/$',  
     19        'django.contrib.auth.views.password_reset_complete' 
     20    ), 
    1221    (r'', include('registration.urls')), 
    1322) 
  • djangoproject.com/django_website/templates/registration/password_reset_email.html

    r8925 r9486  
    1 You're receiving this e-mail because you requested a password reset for your user account at djangoproject.com. 
     1{% load i18n %}{% autoescape off %} 
     2{% trans "You're receiving this e-mail because you requested a password reset" %} 
     3{% blocktrans %}for your user account at {{ site_name }}{% endblocktrans %}. 
    24 
    3 Your new password is: {{ new_password }}. 
     5{% trans "Please go to the following page and choose a new password:" %} 
     6{% block reset_link %} 
     7{{ protocol }}://{{ domain }}{% url auth_password_reset_confim uidb36=uid, token=token %} 
     8{% endblock %} 
     9{% trans "Your username, in case you've forgotten:" %} {{ user.username }} 
    410 
    5 Feel free to change this password by going to this page: 
     11{% trans "Thanks for using our site!" %} 
    612 
    7 http://www.djangoproject.com/accounts/password/change/ 
     13{% blocktrans %}The {{ site_name }} team{% endblocktrans %} 
    814 
    9 Your username, in case you've forgotten: {{ user.username }} 
    10  
    11 Thanks! 
     15{% endautoescape %}