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 %}