From 684101353f35c7d7e2f35eb5cc34f2bfafd5764c Mon Sep 17 00:00:00 2001 From: swayam0322 Date: Tue, 16 Jan 2024 14:51:43 +0530 Subject: [PATCH] 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 --- templates/zerver/find_account.html | 7 ++++++- tools/lib/capitalization.py | 1 + zerver/views/registration.py | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/templates/zerver/find_account.html b/templates/zerver/find_account.html index 4cd51fb9b6..184aaed5ce 100644 --- a/templates/zerver/find_account.html +++ b/templates/zerver/find_account.html @@ -29,6 +29,11 @@ {% endfor %} + {% trans %} + If you don't receive an email, you can + find accounts for another email address. + {% endtrans %} + {% include 'zerver/dev_env_email_access_details.html' %} @@ -43,7 +48,7 @@ {% endtrans %}

+ action="{{ current_url }}" method="post"> {{ csrf_input }}
diff --git a/tools/lib/capitalization.py b/tools/lib/capitalization.py index 7260cc84b8..b92ac442a7 100644 --- a/tools/lib/capitalization.py +++ b/tools/lib/capitalization.py @@ -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", diff --git a/zerver/views/registration.py b/zerver/views/registration.py index 7681fdf4a7..06ce6fee45 100644 --- a/zerver/views/registration.py +++ b/zerver/views/registration.py @@ -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}, )