From 7bf4c238c2b96f60f10a5c17cf2bf9e623f51742 Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Wed, 6 Sep 2023 00:06:10 +0800 Subject: [PATCH 1/4] fix --- fs_template/email_register.tpl | 13 +++++-- fs_template/get_reset_password_html.tpl | 13 +++++-- server/auth/internal/logic/websocket_test.go | 39 ++++++++++++++++++-- 3 files changed, 55 insertions(+), 10 deletions(-) diff --git a/fs_template/email_register.tpl b/fs_template/email_register.tpl index c5b8cb2a..56cb1735 100644 --- a/fs_template/email_register.tpl +++ b/fs_template/email_register.tpl @@ -1,5 +1,11 @@ -Subject: Please confirm your {{ .CompanyName }} account +Subject: Please confirm your {{ .CompanyName }} account; +MIME-version: 1.0; +Content-Type: text/html; charset="UTF-8"; +From: "Fusen Support"; + + +
Dear {{ .UserName }}, Thank you for registering an account with {{ .CompanyName }}. We are thrilled to have you join our community! @@ -8,7 +14,6 @@ Please take a moment to confirm your email address by clicking the button below Confirm Account: {{ .UserName }} - Confirming your email ensures your account is properly secured. This also lets you access member-only tools and content. If you did not register for {{ .CompanyName }}, please disregard this email. Let us know if you have any other questions! @@ -17,4 +22,6 @@ Regards, {{ .SenderName }} {{ .SenderTitle }} -{{ .CompanyName }} \ No newline at end of file +{{ .CompanyName }} + + \ No newline at end of file diff --git a/fs_template/get_reset_password_html.tpl b/fs_template/get_reset_password_html.tpl index 4cd78739..8f9423d6 100644 --- a/fs_template/get_reset_password_html.tpl +++ b/fs_template/get_reset_password_html.tpl @@ -1,5 +1,10 @@ Subject: Password Reset Request for Your {{ .CompanyName }} Account +MIME-version: 1.0; +Content-Type: text/html; charset="UTF-8"; +From: "Fusen Support"; + + Dear {{ .UserName }}, We have received your request to reset the password for your {{ .CompanyName }} account. @@ -16,6 +21,8 @@ To proceed with the password reset, please click the button below to open the Re Please note that this password reset confirmation link will expire in 60 minutes. If you have any further questions, feel free to reach out to us. Regards, -{{ .SenderName }}Dear {{.UserName}},
+ +We have received your request to reset the password for your {{.CompanyName}} account.
+ +To proceed with the password reset, please click the button below to open the Reset Password page:
+ + + +Please note that this password reset confirmation link will expire in 60 minutes. If you have any further questions, feel free to reach out to us.
+ +Regards,
+ +{{.SenderName}}
+{{.SenderTitle}}
+{{.CompanyName}}
Dear {{.UserName}},
-To proceed with the password reset, please click the button below to open the Reset Password page: +We have received your request to reset the password for your {{.CompanyName}} account.
+ +To proceed with the password reset, please click the button below to open the Reset Password page:
-Please note that this password reset confirmation link will expire in 60 minutes. If you have any further questions, feel free to reach out to us. +Please note that this password reset confirmation link will expire in 60 minutes. If you have any further questions, feel free to reach out to us.
-Regards, -{{ .SenderName }} -{{ .SenderTitle }} -{{ .CompanyName }} - - \ No newline at end of file +Regards,
+ +{{.SenderName}}
+{{.SenderTitle}}
+{{.CompanyName}}
Dear {{.UserName}},
-Please take a moment to confirm your email address by clicking the button below so we can activate your account: +Thank you for registering an account with {{ .CompanyName }}. We are thrilled to have you join our community!
+ +Please take a moment to confirm your email address by clicking the button below so we can activate your account:
Confirm Account: {{ .UserName }} -Confirming your email ensures your account is properly secured. This also lets you access member-only tools and content. +Confirming your email ensures your account is properly secured. This also lets you access member-only tools and content.
-If you did not register for {{ .CompanyName }}, please disregard this email. Let us know if you have any other questions! +If you did not register for {{ .CompanyName }}, please disregard this email. Let us know if you have any other questions!
Regards, -{{ .SenderName }} -{{ .SenderTitle }} -{{ .CompanyName }} +{{.SenderName}}
+{{.SenderTitle}}
+{{.CompanyName}}
Regards,
-{{.SenderName}}
-{{.SenderTitle}}
-{{.CompanyName}}
{{.SenderName}}
+{{.SenderTitle}}
+{{.CompanyName}}