Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
emails: Pass reset link as variable in notify new login email.
Vishnu KS0eec12ad8b7e
diff --git a/templates/zerver/emails/notify_new_login.source.html b/templates/zerver/emails/notify_new_login.source.htmlindex eb6e78a63e6..5501b087a3b 100644--- a/templates/zerver/emails/notify_new_login.source.html+++ b/templates/zerver/emails/notify_new_login.source.html@@ -33,7 +33,7 @@<p>{{ _("If this was you, great! There's nothing else you need to do.") }}</p><p>- {% trans support_email=macros.email_tag(support_email) %}If you do not recognize this login, or think your account may have been compromised, please <a href="{{ realm_uri }}/accounts/password/reset/">reset your password</a> or contact us immediately at {{ support_email }}.{% endtrans %}+ {% trans support_email=macros.email_tag(support_email), reset_link=realm_uri + "/accounts/password/reset/" %}If you do not recognize this login, or think your account may have been compromised, please <a href="{{ reset_link }}">reset your password</a> or contact us immediately at {{ support_email }}.{% endtrans %}</p><p>diff --git a/templates/zerver/emails/notify_new_login.txt b/templates/zerver/emails/notify_new_login.txtindex d9e98d015a2..e5f49b9a4b2 100644--- a/templates/zerver/emails/notify_new_login.txt+++ b/templates/zerver/emails/notify_new_login.txt@@ -13,8 +13,8 @@{{ _("If this was you, great! There's nothing else you need to do.") }}-{% trans -%}-If you do not recognize this login, or think your account may have been compromised, please reset your password at {{ realm_uri }}/accounts/password/reset/ or contact us immediately at {{ support_email }}.+{% trans reset_link=realm_uri + "/accounts/password/reset/" %}+If you do not recognize this login, or think your account may have been compromised, please reset your password at {{ reset_link }} or contact us immediately at {{ support_email }}.{%- endtrans %}