fix: close admin user security gaps
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user