Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

find_account: Add button to send another email.

swayam0322684101353f35
diff --git a/templates/zerver/find_account.html b/templates/zerver/find_account.html
index 4cd51fb9b6c..184aaed5ce5 100644
--- a/templates/zerver/find_account.html
+++ b/templates/zerver/find_account.html
@@ -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">
diff --git a/tools/lib/capitalization.py b/tools/lib/capitalization.py
index 7260cc84b89..b92ac442a7c 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 7681fdf4a7a..06ce6fee45f 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},
)