Email verification Backend

This commit is contained in:
magdo
2025-10-24 21:16:23 +02:00
parent b9fedb3601
commit 7a9a676fc0
10 changed files with 8 additions and 9 deletions
@@ -69,7 +69,7 @@ export class CreateUserCommandHandler {
private async sendVerificationEmailAsync(user: UserAggregate, token: string): Promise<void> {
try {
const baseUrl = process.env.APP_BASE_URL || 'http://localhost:3000';
const baseUrl = process.env.FRONTEND_URL || 'http://localhost:5173';
const verificationUrl = TokenService.generateVerificationUrl(baseUrl, token);
const emailSent = await this.emailService.sendVerificationEmail(