fix
This commit is contained in:
parent
1c107ab960
commit
ebdbd91874
|
@ -1,16 +1,13 @@
|
||||||
Subject: Password Reset
|
Subject: Password Reset Request for Your {{ .CompanyName }} Account
|
||||||
|
|
||||||
Request for Your {{ .CompanyName }} Account
|
|
||||||
|
|
||||||
Dear {{ .UserName }},
|
Dear {{ .UserName }},
|
||||||
|
|
||||||
We have received your request to reset the password for your {{ .CompanyName }} account.
|
We have received your request to reset the password for your {{ .CompanyName }} account.
|
||||||
|
|
||||||
Please click the button below to confirm your new password:
|
To proceed with the password reset, please click the button below to open the Reset Password page:
|
||||||
|
|
||||||
<a href="{{ .ConfirmationLink }}" target="_blank" style="background-color: #008CBA; color: #FFFFFF; text-decoration: none; padding: 10px 15px; border-radius: 3px; font-weight: bold;">Open ResetPassword Page</a>
|
<button style="background-color: #008CBA; color: #FFFFFF; text-decoration: none; padding: 10px 15px; border-radius: 3px; font-weight: bold;"> <a href="{{ .ConfirmationLink }}" target="_blank" style="color: #FFFFFF; text-decoration: none;">Reset Password</a> </button>
|
||||||
|
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.
|
||||||
This password reset confirmation link will expire in 60 minutes. Please let us know if you have any other questions!
|
|
||||||
|
|
||||||
Regards,
|
Regards,
|
||||||
{{ .SenderName }}
|
{{ .SenderName }}
|
||||||
|
|
|
@ -56,7 +56,7 @@ func (l *UserResetPasswordLogic) UserResetPassword(req *types.RequestUserResetPa
|
||||||
|
|
||||||
err = l.svcCtx.AllModels.FsUser.Transaction(l.ctx, func(tx *gorm.DB) error {
|
err = l.svcCtx.AllModels.FsUser.Transaction(l.ctx, func(tx *gorm.DB) error {
|
||||||
user := &gmodel.FsUser{Id: int64(rt.UserId)}
|
user := &gmodel.FsUser{Id: int64(rt.UserId)}
|
||||||
err := tx.Take(user).Error
|
err := tx.Model(user).Take(user).Error
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user