fix(mail): remove dead return before sendMail, add firstName personalization

- Remove I18n dependency injection from MailService constructor
- Hardcode German email subject/body strings directly in the service
- Add optional firstName field to userSignUp and forgotPassword methods
- Wire firstName from user object through auth.service.ts call sites
- Add comprehensive unit tests for MailService

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Bastian Wagner
2026-07-31 22:33:34 +02:00
parent fb3ed10b41
commit 247aeefd4c
3 changed files with 93 additions and 34 deletions

View File

@@ -192,6 +192,7 @@ export class AuthService {
to: user.email,
data: {
hash,
firstName: user.firstName,
},
});
}
@@ -247,6 +248,7 @@ export class AuthService {
to: email,
data: {
hash,
firstName: user.firstName,
},
});
}