This commit is contained in:
eson
2023-09-05 15:38:53 +08:00
parent b160b11a78
commit 2019bce30e
2 changed files with 5 additions and 8 deletions

View File

@@ -62,16 +62,15 @@ func (l *UserResetTokenLogic) UserResetToken(req *types.RequestUserResetToken, u
userName := *user.FirstName + " " + *user.LastName
// 进入发送邮箱的系统
EmailManager.EmailTasks <- &EmailFormat{
TemplateName: "reset_password.tpl",
TemplateName: "get_reset_password_html.tpl",
UniqueKey: "reset_password-" + req.Email,
TargetEmail: req.Email,
CompanyName: "fusen",
ConfirmationLink: resetToken, // 跳转连接
ConfirmationLink: l.svcCtx.Config.MainAddress + "/api/auth/reset/password/html?reset_token=" + resetToken, // 跳转连接
SenderName: "support@fusenpack.com",
SenderTitle: "register-valid",
SenderTitle: "reset password",
Extend: map[string]string{
"UserName": userName,
"ResetToken": resetToken,
"UserName": userName,
},
} // email进入队