emails/password_reset: Make .txt template consistent with .html.

This commit is contained in:
Shubham Dhama 2018-08-15 01:12:01 +05:30 committed by Tim Abbott
parent 941cd0bb2f
commit 3fecc71777

View File

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