From ce2baaebe16f49aa3ab706ca0461ef592264fd8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 6 Mar 2012 16:01:33 +0100 Subject: [PATCH] Complete asking for password reset --- html/registration/password_reset_done.html | 9 +++++++++ html/registration/password_reset_email.html | 14 ++++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 html/registration/password_reset_done.html create mode 100644 html/registration/password_reset_email.html diff --git a/html/registration/password_reset_done.html b/html/registration/password_reset_done.html new file mode 100644 index 000000000..5f2f58fe3 --- /dev/null +++ b/html/registration/password_reset_done.html @@ -0,0 +1,9 @@ +{% extends "base.html" %} +{% load i18n %} + + +{% block content %} + +

{% trans "We've e-mailed you instructions for setting your password to the e-mail address you submitted. You should be receiving it shortly." %}

+ +{% endblock %} diff --git a/html/registration/password_reset_email.html b/html/registration/password_reset_email.html new file mode 100644 index 000000000..de9dc79c5 --- /dev/null +++ b/html/registration/password_reset_email.html @@ -0,0 +1,14 @@ +{% load i18n %}{% load url from future %}{% autoescape off %} +{% blocktrans %}You're receiving this e-mail because you requested a password reset for your user account at {{ site_name }}.{% endblocktrans %} + +{% trans "Please go to the following page and choose a new password:" %} +{% block reset_link %} +{{ protocol }}://{{ domain }}{% url 'django.contrib.auth.views.password_reset_confirm' uidb36=uid token=token %} +{% endblock %} +{% trans "Your username, in case you've forgotten:" %} {{ user.username }} + +{% trans "Thanks for using our site!" %} + +{% blocktrans %}The {{ site_name }} team{% endblocktrans %} + +{% endautoescape %}