fix: close admin user security gaps

This commit is contained in:
Bastian Wagner
2026-08-01 00:19:49 +02:00
parent e6acfdcac7
commit bec1826bfa
15 changed files with 566 additions and 103 deletions

View File

@@ -26,6 +26,7 @@ import {
ApiOkResponse,
} from '@nestjs/swagger';
import { CreateInviteDTO } from './dto/create-invite.dto';
import { AuthRegisterLoginDto } from './dto/auth-register-login.dto';
@ApiTags('Auth')
@Controller({
@@ -50,7 +51,7 @@ export class AuthController {
@Post('email/register')
@HttpCode(HttpStatus.CREATED)
async register(@Body() createUserDto: any) {
async register(@Body() createUserDto: AuthRegisterLoginDto) {
return this.service.register(createUserDto);
}