Write password recovery emails in html

This commit is contained in:
Aarni Halinen
2017-10-31 22:10:59 +02:00
parent 08bb63ce1f
commit 38225cabc8
3 changed files with 15 additions and 15 deletions
@@ -0,0 +1,14 @@
{% autoescape off %}
{% load i18n %}
{% blocktrans %}You're receiving this e-mail because you requested a password reset for your user account at{% endblocktrans %} {{ site.domain }}.
{% blocktrans %}Please go to the following page and choose a new password:{% endblocktrans %}
{% block reset_link %}
{% if secure %}https {% else %}http{% endif %}://{{ site.domain }}{% url "password_reset_reset" token %}
{% endblock %}
{% blocktrans %}Your username, in case you've forgotten: {% endblocktrans %}{{ user.username }}
{% blocktrans %}If you don't want to reset your password, simply ignore this email and it will stay unchanged.{% endblocktrans %}
{% endautoescape %}
@@ -0,0 +1 @@
{% load i18n %}{% blocktrans %}Password recovery on{% endblocktrans %} {{ site.domain }}
-15
View File
@@ -1,15 +0,0 @@
{% autoescape off %}
You're receiving this e-mail because you requested a password reset for your user account at {{ site_name }}.
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 %}
Your username, in case you've forgotten: {{ user.username }}
Thanks for using our site!
The {{ site_name }} team.
{% endautoescape %}