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:
swayam0322 2024-01-16 14:51:43 +05:30 committed by Tim Abbott
parent db10cca4a2
commit 684101353f
3 changed files with 8 additions and 2 deletions

View File

@ -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">

View File

@ -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",

View File

@ -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},
)