From 3fecc71777f2c1759a5dfaecc8db7f2e62cfd132 Mon Sep 17 00:00:00 2001 From: Shubham Dhama Date: Wed, 15 Aug 2018 01:12:01 +0530 Subject: [PATCH] emails/password_reset: Make `.txt` template consistent with `.html`. --- templates/zerver/emails/password_reset.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/templates/zerver/emails/password_reset.txt b/templates/zerver/emails/password_reset.txt index eba77db648..9676207f48 100644 --- a/templates/zerver/emails/password_reset.txt +++ b/templates/zerver/emails/password_reset.txt @@ -2,16 +2,16 @@ Someone (possibly you) requested a password reset email for {{ email }} on {{ realm_uri }}, but you do not have an active account in {{ realm_uri }}. -{% if accounts %} -{% if multiple_accounts %} +{% if active_accounts %} +{% if multiple_active_accounts %} However, you do have active accounts in the following organizations. -{% for account in accounts %} -{{ account.realm.uri }} +{% for active_account in active_accounts %} +{{ active_account.realm.uri }} {% endfor %} You can try logging in or resetting your password in the organization you want. {% else %} -However, you do have an active account in the {{ accounts[0].realm.uri }} +However, you do have an active account in the {{ active_accounts[0].realm.uri }} organization; you can try logging in or resetting your password there. {% endif %} {% endif %}