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.

emails: Adjust wording in remote realm login link email.

Alya Abbotteb57b4c4f76b
diff --git a/corporate/tests/test_remote_billing.py b/corporate/tests/test_remote_billing.py
index ee644949709..2b1bb16db91 100644
--- a/corporate/tests/test_remote_billing.py
+++ b/corporate/tests/test_remote_billing.py
@@ -86,9 +86,9 @@ class RemoteBillingAuthenticationTest(BouncerTestCase):
user.delivery_email,
url_pattern=(
f"{settings.SELF_HOSTING_MANAGEMENT_SUBDOMAIN}.{settings.EXTERNAL_HOST}"
- r"(\S+)>"
+ r"(\S+)"
),
- email_body_contains="Click the link below to complete the login process",
+ email_body_contains="This link will expire in 2 hours",
)
if return_without_clicking_confirmation_link:
return result
diff --git a/corporate/views/remote_billing_page.py b/corporate/views/remote_billing_page.py
index 7a214ca82ab..705e9f148ff 100644
--- a/corporate/views/remote_billing_page.py
+++ b/corporate/views/remote_billing_page.py
@@ -314,9 +314,10 @@ def remote_realm_billing_confirm_email(
)
context = {
- "remote_server_hostname": remote_server.hostname,
"remote_realm_host": remote_realm.host,
"confirmation_url": url,
+ "billing_help_link": "https://zulip.com/help/self-hosted-billing",
+ "billing_contact_email": "[email protected]",
}
send_email(
"zerver/emails/remote_realm_billing_confirm_login",
diff --git a/templates/zerver/emails/remote_realm_billing_confirm_login.html b/templates/zerver/emails/remote_realm_billing_confirm_login.html
index 62786a2b3f8..697fdc1020d 100644
--- a/templates/zerver/emails/remote_realm_billing_confirm_login.html
+++ b/templates/zerver/emails/remote_realm_billing_confirm_login.html
@@ -6,17 +6,12 @@
{% block content %}
<p>
- {{ _("You have initiated login to the Zulip plan management system for the following organization:") }}
- <ul>
- <li>{% trans %}Organization host: {{ remote_realm_host }}{% endtrans %}</li>
- <li>{% trans %}Server host: {{ remote_server_hostname }}{% endtrans %}</li>
- </ul>
+ {% trans %}Click the button below to log in to Zulip plan management for <b>{{ remote_realm_host }}</b>. This link will expire in 2 hours.{% endtrans %}
</p>
<p>
- {{ _("Click the button below to complete the login process.") }}
- <a class="button" href="{{ confirmation_url }}">{{ _("Confirm login") }}</a>
+ <a class="button" href="{{ confirmation_url }}">{{ _("Log in") }}</a>
</p>
<p>
- {{macros.contact_us_zulip_cloud(support_email)}}
+ {% trans billing_contact_email=macros.email_tag(billing_contact_email) %}Questions? <a href="{{ billing_help_link }}">Learn more</a> or contact {{ billing_contact_email }}.{% endtrans %}
</p>
{% endblock %}
diff --git a/templates/zerver/emails/remote_realm_billing_confirm_login.subject.txt b/templates/zerver/emails/remote_realm_billing_confirm_login.subject.txt
index d2cf8ca88ec..b808605b6d0 100644
--- a/templates/zerver/emails/remote_realm_billing_confirm_login.subject.txt
+++ b/templates/zerver/emails/remote_realm_billing_confirm_login.subject.txt
@@ -1 +1 @@
-{% trans %}Confirm login to Zulip plan management{% endtrans %}
+{% trans %}Log in to Zulip plan management{% endtrans %}
diff --git a/templates/zerver/emails/remote_realm_billing_confirm_login.txt b/templates/zerver/emails/remote_realm_billing_confirm_login.txt
index c35a6347ebd..dc1a6761c3d 100644
--- a/templates/zerver/emails/remote_realm_billing_confirm_login.txt
+++ b/templates/zerver/emails/remote_realm_billing_confirm_login.txt
@@ -1,9 +1,6 @@
-{{ _("You have initiated login to the Zulip plan management system for the following organization:") }}
-* {% trans %}Organization host: {{ remote_realm_host }}{% endtrans %}
+{% trans %}Click the link below to log in to Zulip plan management for {{ remote_realm_host }}. This link will expire in 2 hours.{% endtrans %}
-* {% trans %}Server host: {{ remote_server_hostname }}{% endtrans %}
-{{ _("Click the link below to complete the login process;") }}
- <{{ confirmation_url }}>
+{{ _("Log in") }}: {{ confirmation_url }}
-{% trans %}Do you have questions or feedback to share? Contact us at {{ support_email }} — we'd love to help!{% endtrans %}
+{% trans %}Questions? Learn more at {{ billing_help_link }} or contact {{ billing_contact_email }}.{% endtrans %}