verifizierung
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user