mirror of https://gitee.com/answerdev/answer.git
update user change email
This commit is contained in:
parent
302150aa6e
commit
220eefc2e7
|
@ -519,10 +519,10 @@ func (us *UserService) UserChangeEmailSendCode(ctx context.Context, req *schema.
|
||||||
title, body, err = us.emailService.RegisterTemplate(ctx, verifyEmailUrl)
|
title, body, err = us.emailService.RegisterTemplate(ctx, verifyEmailUrl)
|
||||||
} else {
|
} else {
|
||||||
title, body, err = us.emailService.ChangeEmailTemplate(ctx, verifyEmailUrl)
|
title, body, err = us.emailService.ChangeEmailTemplate(ctx, verifyEmailUrl)
|
||||||
|
}
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
|
||||||
log.Infof("send email confirmation %s", verifyEmailUrl)
|
log.Infof("send email confirmation %s", verifyEmailUrl)
|
||||||
|
|
||||||
go us.emailService.Send(context.Background(), req.Email, title, body, code, data.ToJSONString())
|
go us.emailService.Send(context.Background(), req.Email, title, body, code, data.ToJSONString())
|
||||||
|
|
Loading…
Reference in New Issue