update user change email

This commit is contained in:
aichy126 2022-10-31 16:53:59 +08:00
parent 302150aa6e
commit 220eefc2e7
1 changed files with 3 additions and 3 deletions

View File

@ -519,10 +519,10 @@ func (us *UserService) UserChangeEmailSendCode(ctx context.Context, req *schema.
title, body, err = us.emailService.RegisterTemplate(ctx, verifyEmailUrl)
} else {
title, body, err = us.emailService.ChangeEmailTemplate(ctx, verifyEmailUrl)
}
if err != nil {
return err
}
}
log.Infof("send email confirmation %s", verifyEmailUrl)
go us.emailService.Send(context.Background(), req.Email, title, body, code, data.ToJSONString())