mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
find_account: Do not place Realm objects into context.
This commit is contained in:
parent
1e1292f2f5
commit
0078310be7
@ -9,7 +9,7 @@
|
||||
|
||||
|
||||
{% for realm in realms %}
|
||||
* {{ realm.name }}: {{ realm.url }}
|
||||
* {{ realm[0] }}: {{ realm[1] }}
|
||||
{% endfor %}
|
||||
|
||||
{% trans %}If you have trouble logging in, you can reset your password.{% endtrans %}
|
||||
|
||||
@ -1546,7 +1546,7 @@ def find_account(request: HttpRequest) -> HttpResponse:
|
||||
key = user.delivery_email.lower()
|
||||
context.setdefault(key, {})
|
||||
context[key].setdefault("realms", [])
|
||||
context[key]["realms"].append(user.realm)
|
||||
context[key]["realms"].append([user.realm.name, user.realm.url])
|
||||
# This value will end up being the last user ID among
|
||||
# matching accounts; since it's only used for minor
|
||||
# details like language, that arbitrary choice is OK.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user