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.

portico: Update strings for RemoteRealm login flow.

Karl Stolley180dd00d5f9c
diff --git a/corporate/tests/test_remote_billing.py b/corporate/tests/test_remote_billing.py
index ba887b5c1a0..93610236388 100644
--- a/corporate/tests/test_remote_billing.py
+++ b/corporate/tests/test_remote_billing.py
@@ -66,7 +66,7 @@ class RemoteBillingAuthenticationTest(BouncerTestCase):
# When logging in for the first time some extra steps are needed
# to confirm and verify the email address.
self.assertEqual(result.status_code, 200)
- self.assert_in_success_response(["Enter log in email"], result)
+ self.assert_in_success_response(["Enter email"], result)
self.assert_in_success_response([user.realm.host], result)
self.assert_in_success_response(
[f'action="/remote-billing-login/{signed_access_token}/confirm/"'], result
@@ -80,7 +80,11 @@ class RemoteBillingAuthenticationTest(BouncerTestCase):
)
self.assertEqual(result.status_code, 200)
self.assert_in_success_response(
- ["We have sent a log in link", "link will expire in", user.delivery_email],
+ [
+ "To finish logging in, check your email account (",
+ ") for a confirmation email from Zulip.",
+ user.delivery_email,
+ ],
result,
)
confirmation_url = self.get_confirmation_url_from_outbox(
diff --git a/corporate/views/remote_billing_page.py b/corporate/views/remote_billing_page.py
index 25e6e66c4cd..48e182a4c59 100644
--- a/corporate/views/remote_billing_page.py
+++ b/corporate/views/remote_billing_page.py
@@ -548,7 +548,7 @@ def remote_billing_legacy_server_confirm_login(
return render(
request,
"corporate/remote_billing_email_confirmation_sent.html",
- context={"email": email},
+ context={"email": email, "remote_server_hostname": remote_server.hostname},
)
diff --git a/templates/corporate/remote_billing_confirm_email_form.html b/templates/corporate/remote_billing_confirm_email_form.html
index 83122de8a6a..14d704b7879 100644
--- a/templates/corporate/remote_billing_confirm_email_form.html
+++ b/templates/corporate/remote_billing_confirm_email_form.html
@@ -2,14 +2,22 @@
{% set entrypoint = "upgrade" %}
{% block title %}
+{% if remote_server_hostname %}
<title>Enter log in email | Zulip</title>
+{% else %}
+<title>Enter email | Zulip</title>
+{% endif %}
{% endblock %}
{% block portico_content %}
<div class="register-account flex full-page" id="remote-billing-confirm-email">
<div class="center-block new-style">
<div class="pitch">
+ {% if remote_server_hostname %}
<h1>Enter log in email</h1>
+ {% else %}
+ <h1>Enter email</h1>
+ {% endif %}
</div>
<div class="white-box">
<form id="remote-billing-confirm-email-form" method="post" action="{{ action_url }}">
@@ -22,7 +30,7 @@
{% if remote_server_hostname %}
Enter the email address of the person who is logging in to manage plans and billing for this server (yourself or someone else). They will receive an email from Zulip with a log in link.
{% else %}
- Enter the email address where you want to receive an email from Zulip with a log in link.
+ Enter the email address you want to use for Zulip plan management. You will receive a one-time confirmation email.
{% endif %}
</div>
</div>
diff --git a/templates/corporate/remote_billing_email_confirmation_sent.html b/templates/corporate/remote_billing_email_confirmation_sent.html
index 97cd942b962..d4694496d43 100644
--- a/templates/corporate/remote_billing_email_confirmation_sent.html
+++ b/templates/corporate/remote_billing_email_confirmation_sent.html
@@ -2,7 +2,11 @@
{% set entrypoint = "upgrade" %}
{% block title %}
+{% if remote_server_hostname %}
<title>Log in link sent | Zulip</title>
+{% else %}
+<title>Confirm your email address | Zulip</title>
+{% endif %}
{% endblock %}
{% block portico_content %}
@@ -11,11 +15,19 @@
<div class="inline-block">
<div class="get-started">
+ {% if remote_server_hostname %}
<h1>Log in link sent</h1>
+ {% else %}
+ <h1>Confirm your email address</h1>
+ {% endif %}
</div>
<div class="white-box">
+ {% if remote_server_hostname %}
<p>We have sent a log in link for Zulip plan management to <span class="user_email semi-bold">{{ email }}</span>. This link will expire in 2 hours.</p>
+ {% else %}
+ <p>To finish logging in, check your email account (<span class="user_email semi-bold">{{ email }}</span>) for a confirmation email from Zulip.</p>
+ {% endif %}
{% include 'zerver/dev_env_email_access_details.html' %}
</div>