mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
find_account: Add button to send another email.
The result page didn't have any resend button a button was added to redirect to the form where the user can find their account Fixes part of #3128
This commit is contained in:
@@ -29,6 +29,11 @@
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% trans %}
|
||||
If you don't receive an email, you can
|
||||
<a href="{{ current_url }}">find accounts for another email address</a>.
|
||||
{% endtrans %}
|
||||
|
||||
{% include 'zerver/dev_env_email_access_details.html' %}
|
||||
|
||||
</div>
|
||||
@@ -43,7 +48,7 @@
|
||||
{% endtrans %}
|
||||
</p>
|
||||
<form class="form-inline" id="find_account" name="email_form"
|
||||
action="{{ current_url() }}" method="post">
|
||||
action="{{ current_url }}" method="post">
|
||||
{{ csrf_input }}
|
||||
<div class="input-box moving-label horizontal">
|
||||
<div class="inline-block relative">
|
||||
|
||||
@@ -83,6 +83,7 @@ IGNORED_PHRASES = [
|
||||
r"user",
|
||||
r"an unknown operating system",
|
||||
r"Go to Settings",
|
||||
r"find accounts for another email address",
|
||||
# SPECIAL CASES
|
||||
# Because topics usually are lower-case, this would look weird if it were capitalized
|
||||
r"more topics",
|
||||
|
||||
@@ -1128,7 +1128,7 @@ def find_account(request: HttpRequest) -> HttpResponse:
|
||||
return render(
|
||||
request,
|
||||
"zerver/find_account.html",
|
||||
context={"form": form, "current_url": lambda: url, "emails": emails},
|
||||
context={"form": form, "current_url": url, "emails": emails},
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user