verifizierung

This commit is contained in:
Bastian Wagner
2026-06-09 14:01:38 +02:00
parent 8f3806d398
commit 4c9ecb0b6b
33 changed files with 3993 additions and 132 deletions

View File

@@ -14,6 +14,7 @@ import type { AuthenticatedRequest } from './auth.types';
import { AuthService } from './auth.service';
import { LoginDto } from './dto/login.dto';
import { RefreshTokenDto } from './dto/refresh-token.dto';
import { ResendVerificationDto } from './dto/resend-verification.dto';
import { RegisterDto } from './dto/register.dto';
import { JwtAuthGuard } from './jwt-auth.guard';
@@ -31,6 +32,12 @@ export class AuthController {
return this.authService.verifyEmail(token);
}
@Post('resend-verification')
@HttpCode(HttpStatus.OK)
resendVerification(@Body() resendVerificationDto: ResendVerificationDto) {
return this.authService.resendVerificationEmail(resendVerificationDto);
}
@Post('login')
@HttpCode(HttpStatus.OK)
login(@Body() loginDto: LoginDto) {