fix
This commit is contained in:
parent
b160b11a78
commit
2019bce30e
|
@ -1,11 +1,9 @@
|
|||
Dear {{ .UserName }},
|
||||
|
||||
We have received your request to reset your {{ .CompanyName }} account password.
|
||||
We have received your request to reset the password for your {{ .CompanyName }} account.
|
||||
|
||||
Please click the button below to confirm your new password:
|
||||
|
||||
<h1 style="color: red; font-weight: bold;">{{ .MaskedPassword }}</h1> (This can be replaced by the masked new password)
|
||||
|
||||
<a href="{{ .ConfirmationLink }}" target="_blank" style="background-color: #008CBA; color: #FFFFFF; text-decoration: none; padding: 10px 15px; border-radius: 3px; font-weight: bold;">Confirm New Password</a>
|
||||
|
||||
This password reset confirmation link will expire in 60 minutes. Please let us know if you have any other questions!
|
|
@ -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进入队
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user