-
+
|
@@ -43,7 +43,7 @@
|
- 尊敬的{{.name}},您好:
+ 尊敬的{{.receiver_name}},您好:
|
@@ -53,10 +53,10 @@
- | 如非本人操作,请及时登录平台并修改密码以保证账户的安全 |
+ 如非本人操作,请及时登录平台并修改密码以保证账户的安全 |
- | 版权所有 © {{.copyright}} 保留一切权利 |
+ 版权所有 © {{.copyright}} 保留一切权利 |
diff --git a/build/notify/root/opt/yunion/share/template/content@en/VERIFY.email b/build/notify/root/opt/yunion/share/template/content@en/VERIFY.email
index 5bf1019e19..8b3d5bbfa8 100644
--- a/build/notify/root/opt/yunion/share/template/content@en/VERIFY.email
+++ b/build/notify/root/opt/yunion/share/template/content@en/VERIFY.email
@@ -6,12 +6,12 @@
-
+
-
+
|
@@ -43,7 +43,7 @@
|
- Dear {{.name}}:
+ Dear {{.receiver_name}}:
|
@@ -56,10 +56,10 @@
- | If you are not operating by yourself, please log in to the platform in time and change your password to ensure the security of your account. |
+ If you are not operating by yourself, please log in to the platform in time and change your password to ensure the security of your account. |
- | Copyrights © {{.copyright}}. All rights reserved. |
+ Copyrights © {{.copyright}}. All rights reserved. |
diff --git a/pkg/notify/models/template.go b/pkg/notify/models/template.go
index 83a91194c9..e2c7e59c2b 100644
--- a/pkg/notify/models/template.go
+++ b/pkg/notify/models/template.go
@@ -128,6 +128,7 @@ type SCompanyInfo struct {
LoginLogo string `json:"login_logo"`
LoginLogoFormat string `json:"login_logo_format"`
Copyright string `json:"copyright"`
+ Name string `json:"name"`
}
func (tm *STemplateManager) GetCompanyInfo(ctx context.Context) (SCompanyInfo, error) {
diff --git a/pkg/notify/tasks/verification_send_task.go b/pkg/notify/tasks/verification_send_task.go
index b66910ff34..019cd5ee84 100644
--- a/pkg/notify/tasks/verification_send_task.go
+++ b/pkg/notify/tasks/verification_send_task.go
@@ -54,10 +54,10 @@ func (self *VerificationSendTask) OnInit(ctx context.Context, obj db.IStandalone
}
data := struct {
models.SCompanyInfo
- Name string
- Code string
+ ReceiverName string
+ Code string
}{
- Name: receiver.Name,
+ ReceiverName: receiver.Name,
Code: verification.Token,
SCompanyInfo: info,
}
| |