mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 18:06:44 +00:00
forms: Fix accounts listed in password_reset email to active accounts.
Previously we were listing both accounts, active as well as non-active. Fixes: #10130.
This commit is contained in:
committed by
Tim Abbott
parent
ab22b4411f
commit
2dec30e4ab
@@ -7,19 +7,19 @@
|
||||
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.
|
||||
<ul>
|
||||
{% for account in accounts %}
|
||||
<li>{{ account.realm.uri }}</li>
|
||||
{% for active_account in active_accounts %}
|
||||
<li>{{ active_accounts.realm.uri }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
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 %}
|
||||
|
||||
Reference in New Issue
Block a user