From 84ea0bd6f62773f80eba16b58e2a6366ea501e1a Mon Sep 17 00:00:00 2001 From: eson <9673575+githubcontent@user.noreply.gitee.com> Date: Wed, 6 Sep 2023 18:52:51 +0800 Subject: [PATCH] fix --- fs_template/email_register_oauth2.tpl | 2 +- server/auth/internal/logic/useremailregisterlogic.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/fs_template/email_register_oauth2.tpl b/fs_template/email_register_oauth2.tpl index 39cef6d6..5a744784 100644 --- a/fs_template/email_register_oauth2.tpl +++ b/fs_template/email_register_oauth2.tpl @@ -9,7 +9,7 @@ From: "Fusen Support"

Dear {{.UserName}},

-

Thank you for choosing to associate your email address with your {{ .CompanyName }} account {{ .PlatformAndID }}. To complete the process, please click the button below to confirm your email:

+

Thank you for choosing to associate your email address with your {{ .CompanyName }} account({{ .PlatformAndID }}). To complete the process, please click the button below to confirm your email:

Confirm Email: {{ .Email }} diff --git a/server/auth/internal/logic/useremailregisterlogic.go b/server/auth/internal/logic/useremailregisterlogic.go index 23ecf61f..60e66a2c 100644 --- a/server/auth/internal/logic/useremailregisterlogic.go +++ b/server/auth/internal/logic/useremailregisterlogic.go @@ -79,8 +79,7 @@ func (l *UserEmailRegisterLogic) UserEmailRegister(req *types.RequestEmailRegist } else { tplsel = "email_register_oauth2.tpl" if oauthId, ok := token.Extend["oauth_id"]; ok { - - platformAndID = token.Platform + " Id: " + oauthId.(string) + platformAndID = token.Platform + " id: " + oauthId.(string) logx.Error(platformAndID) } }