From 4f9e23e0bc8a110c8a56b097c6de119f2005768f Mon Sep 17 00:00:00 2001 From: Eskil Heyn Olsen Date: Sat, 12 Jan 2013 19:34:53 -0800 Subject: [PATCH] Fix email forms to have externally available links --- flask_security/templates/security/email/change_notice.html | 2 +- flask_security/templates/security/email/change_notice.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flask_security/templates/security/email/change_notice.html b/flask_security/templates/security/email/change_notice.html index 8280683..fdca72a 100644 --- a/flask_security/templates/security/email/change_notice.html +++ b/flask_security/templates/security/email/change_notice.html @@ -1,4 +1,4 @@

Your password has been changed.

{% if security.recoverable %} -

If you did not change your password, click here to reset your password.

+

If you did not change your password, click here to reset your password.

{% endif %} diff --git a/flask_security/templates/security/email/change_notice.txt b/flask_security/templates/security/email/change_notice.txt index df2d2d4..23b1084 100644 --- a/flask_security/templates/security/email/change_notice.txt +++ b/flask_security/templates/security/email/change_notice.txt @@ -1,5 +1,5 @@ Your password has been changed {% if security.recoverable %} If you did not change your password, click the link below to reset your password: -{{ url_for_security('forgot_password') }} +{{ url_for_security('forgot_password', _external=True) }} {% endif %}