From 42e6bf53c219f0f1468f92a13a45a22831a152ca Mon Sep 17 00:00:00 2001 From: douxc Date: Wed, 28 Aug 2024 11:37:54 +0800 Subject: [PATCH] feat: add email templates for login and reset password --- .../email_code_login_mail_template_en-US.html | 74 ++++++++++ .../email_code_login_mail_template_zh-CN.html | 74 ++++++++++ .../reset_password_mail_template_en-US.html | 132 +++++++++--------- .../reset_password_mail_template_zh-CN.html | 132 +++++++++--------- 4 files changed, 282 insertions(+), 130 deletions(-) create mode 100644 api/templates/email_code_login_mail_template_en-US.html create mode 100644 api/templates/email_code_login_mail_template_zh-CN.html diff --git a/api/templates/email_code_login_mail_template_en-US.html b/api/templates/email_code_login_mail_template_en-US.html new file mode 100644 index 0000000000..066818d10c --- /dev/null +++ b/api/templates/email_code_login_mail_template_en-US.html @@ -0,0 +1,74 @@ + + + + + + +
+
+ + Dify Logo +
+

Your login code for Dify

+

Copy and paste this code, this code will only be valid for the next 5 minutes.

+
+ {{code}} +
+

If you didn't request a login, don't worry. You can safely ignore this email.

+
+ + diff --git a/api/templates/email_code_login_mail_template_zh-CN.html b/api/templates/email_code_login_mail_template_zh-CN.html new file mode 100644 index 0000000000..a1170f5586 --- /dev/null +++ b/api/templates/email_code_login_mail_template_zh-CN.html @@ -0,0 +1,74 @@ + + + + + + +
+
+ + Dify Logo +
+

Dify 的登录验证码

+

复制并粘贴此验证码,注意验证码仅在接下来的 5 分钟内有效。

+
+ {{code}} +
+

如果您没有请求登陆,请不要担心。您可以安全地忽略此电子邮件。

+
+ + diff --git a/api/templates/reset_password_mail_template_en-US.html b/api/templates/reset_password_mail_template_en-US.html index ffc558ab66..fa73144ad4 100644 --- a/api/templates/reset_password_mail_template_en-US.html +++ b/api/templates/reset_password_mail_template_en-US.html @@ -1,72 +1,74 @@ - + - - - + +
-
- Dify Logo -
-
-

Dear {{ to }},

-

We have received a request to reset your password. If you initiated this request, please click the button below to reset your password:

-

Reset Password

-

If you did not request a password reset, please ignore this email and your account will remain secure.

-
- +
+ + Dify Logo +
+

Reset your Dify password

+

Copy and paste this code, this code will only be valid for the next 5 minutes.

+
+ {{code}} +
+

If you didn't request a reset, don't worry. You can safely ignore this email.

- + diff --git a/api/templates/reset_password_mail_template_zh-CN.html b/api/templates/reset_password_mail_template_zh-CN.html index b74b23ac3f..88b45420f6 100644 --- a/api/templates/reset_password_mail_template_zh-CN.html +++ b/api/templates/reset_password_mail_template_zh-CN.html @@ -1,72 +1,74 @@ - + - - - + +
-
- Dify Logo -
-
-

尊敬的 {{ to }},

-

我们收到了您关于重置密码的请求。如果是您本人操作,请点击以下按钮重置您的密码:

-

重置密码

-

如果您没有请求重置密码,请忽略此邮件,您的账户信息将保持安全。

-
- +
+ + Dify Logo +
+

重置您的Dify密码

+

复制并粘贴此验证码,注意验证码仅在接下来的 5 分钟内有效。

+
+ {{code}} +
+

如果您没有请求重置密码,请不要担心。您可以安全地忽略此电子邮件。

- +