Browse Source

Reword password reset notice

Peter Justin 9 years ago
parent
commit
ee30faa1b1

+ 6 - 2
flaskbb/templates/email/reset_password.html

@@ -1,5 +1,9 @@
+{% set link = url_for('auth.reset_password', token=token, _external=True) %}
 <p>{% trans user=user.username %}Dear {{ user }},{% endtrans %}</p>
 <p>{% trans user=user.username %}Dear {{ user }},{% endtrans %}</p>
-<p>{% trans %}To reset your password click on the following link:{% endtrans %}</p>
-<p><a href="{{ url_for('auth.reset_password', token=token, _external=True) }}">{{ url_for('auth.reset_password', token=token, _external=True) }}</a></p>
+
+<p>{% trans %}Click the link below to reset your password:{% endtrans %}</p>
+
+<p><a href="{{ link }}"</a></p>
+
 <p>{% trans %}Sincerely,{% endtrans %}</p>
 <p>{% trans %}Sincerely,{% endtrans %}</p>
 <p>{% trans %}The Administration{% endtrans %}</p>
 <p>{% trans %}The Administration{% endtrans %}</p>

+ 1 - 1
flaskbb/templates/email/reset_password.txt

@@ -2,7 +2,7 @@
 
 
 {% trans user=user.username, link=link %}Dear {{ user }},
 {% trans user=user.username, link=link %}Dear {{ user }},
 
 
-To reset your password click on the following link:
+Click the link below to reset your password:
 
 
 {{ link }}
 {{ link }}