emails: Adjust wording in remote realm login link email.

This commit is contained in:
Alya Abbott 2023-12-10 21:30:33 -08:00 committed by Tim Abbott
parent 9e90afc504
commit eb57b4c4f7
5 changed files with 11 additions and 18 deletions

View File

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

View File

@ -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": "sales@zulip.com",
}
send_email(
"zerver/emails/remote_realm_billing_confirm_login",

View File

@ -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 %}

View File

@ -1 +1 @@
{% trans %}Confirm login to Zulip plan management{% endtrans %}
{% trans %}Log in to Zulip plan management{% endtrans %}

View File

@ -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 %}