From 6b4d276ffe197177b7e8eadf9020b1804dedc3f6 Mon Sep 17 00:00:00 2001 From: george Date: Thu, 20 Jan 2022 15:40:28 +0000 Subject: [PATCH] Add change password button with link to dashboard. --- templates/dashboard/setting.html | 2 +- templates/emails/transactional/invalid-totp-login.html | 8 +++++--- templates/emails/transactional/invalid-totp-login.txt | 5 +++-- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/templates/dashboard/setting.html b/templates/dashboard/setting.html index 04f94d8d..62008165 100644 --- a/templates/dashboard/setting.html +++ b/templates/dashboard/setting.html @@ -209,7 +209,7 @@ -
+
Password diff --git a/templates/emails/transactional/invalid-totp-login.html b/templates/emails/transactional/invalid-totp-login.html index 6bfeb888..bc950c88 100644 --- a/templates/emails/transactional/invalid-totp-login.html +++ b/templates/emails/transactional/invalid-totp-login.html @@ -2,9 +2,11 @@ {% block content %} {{ render_text("There has been an unsuccessful login attempt on your SimpleLogin account.") }} - {{ render_text("An invalid TOTP code was provided. The email and password were provided correctly.") }} + {{ render_text("An invalid TOTP code was provided but the email and password were provided correctly.") }} {{ render_text("This request was blocked. However, if this was not you, please change your password immediately.") }} - {{ render_text('Thanks,
SimpleLogin Team.') }} -{% endblock %} + {{ render_button("Change your password", URL ~ "/dashboard/setting#change_password") }} + {{ render_text('Thanks,
SimpleLogin Team.') }} + {{ raw_url(URL ~ "/dashboard/setting#change_password") }} +{% endblock %} diff --git a/templates/emails/transactional/invalid-totp-login.txt b/templates/emails/transactional/invalid-totp-login.txt index 5bac75c0..314f9c51 100644 --- a/templates/emails/transactional/invalid-totp-login.txt +++ b/templates/emails/transactional/invalid-totp-login.txt @@ -1,7 +1,8 @@ There has been an unsuccessful login attempt on your SimpleLogin account. -An invalid TOTP code was provided. The email and password were provided correctly. +An invalid TOTP code was provided but the email and password were provided correctly. -This request was blocked. However, if this was not you, please change your password immediately. +This request was blocked. However, if this was not you, please change your password immediately. +{{URL}}/dashboard/setting#change_password Thanks, SimpleLogin Team.