From e74921f95285248dc3142b213e75d47b6cbccedc Mon Sep 17 00:00:00 2001 From: llj Date: Tue, 23 Jul 2024 15:28:51 +0800 Subject: [PATCH] Verification code email fixup (#6402) * [share link] email address verification: fixed the content in the 'verification code' email * [share link] email address verification: improvement for the 'verification code' email --- seahub/share/templates/share/audit_code_email.html | 2 +- seahub/share/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/seahub/share/templates/share/audit_code_email.html b/seahub/share/templates/share/audit_code_email.html index e6f682f78c..146abb9433 100644 --- a/seahub/share/templates/share/audit_code_email.html +++ b/seahub/share/templates/share/audit_code_email.html @@ -7,7 +7,7 @@

{% trans "Hi," %}

-{% blocktrans %}The verification code is {{code}}, and it will be valid in one hour.{% endblocktrans%} +{% blocktrans %}The verification code is {{code}}. It is valid for one hour.{% endblocktrans%}

{% endautoescape %} diff --git a/seahub/share/views.py b/seahub/share/views.py index c0d2f18bf2..63e3139f88 100644 --- a/seahub/share/views.py +++ b/seahub/share/views.py @@ -372,7 +372,7 @@ def ajax_get_link_email_audit_code(request): cache.set(cache_key, code, 60 * 60) # send code to user via email - subject = _("The verification code") + subject = _("Verification code") c = {'code': code} send_success = send_html_email_with_dj_template(email,