Write password recovery emails in html
This commit is contained in:
@@ -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 }}
|
||||
@@ -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 %}
|
||||
Reference in New Issue
Block a user