feat: new emails design

This commit is contained in:
fsylvain committed 2026-09-26 05:41:34 +02:00
1 parent 4e41d60142
commit 30a4df47b1
15 files changed
+498 -68

No files matched your search

@@ -65,7 +65,7 @@ func (g *CreateUserUseCase) CreateUser(createUser CreateUserCommand) (user.User,
createdUser.VerificationCode = rawUuid
if err := g.mailRepository.Send(createdUser.Email, "mailValidation", MailValidationData{
if err := g.mailRepository.Send(createdUser.Email, "verification", MailValidationData{
Host: g.publicURL,
VerificationCode: rawUuid,
}); err != nil {
@@ -46,7 +46,7 @@ func (g *RequestPasswordResetUseCase) RequestPasswordReset(email string) error {
return nil
}
if err := g.mailRepository.Send(foundUser.Email, "passwordReset", MailPasswordResetData{
if err := g.mailRepository.Send(foundUser.Email, "password-reset", MailPasswordResetData{
Host: g.publicURL,
VerificationCode: rawCode,
Email: foundUser.Email,