listo recapcha
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { Body, Controller, Get, Post, UseGuards } from '@nestjs/common';
|
||||
import { AuthGuard } from '@nestjs/passport';
|
||||
import { ApiBody, ApiOperation, ApiTags } from '@nestjs/swagger';
|
||||
import { Recaptcha } from '@nestlab/google-recaptcha';
|
||||
import { Serealize } from '../interceptors/serialize.interceptor';
|
||||
import { AuthService } from './auth.service';
|
||||
import { LoginAdminDto } from './dto/input/login-admin.dto';
|
||||
@@ -15,6 +16,7 @@ export class AuthController {
|
||||
constructor(private authService: AuthService) {}
|
||||
|
||||
@Serealize(AuthOperadorOutputDto)
|
||||
@Recaptcha()
|
||||
@Post('login-admin')
|
||||
@ApiOperation({
|
||||
description: 'Endpoint utilizado para el login del panel admin.',
|
||||
@@ -35,6 +37,7 @@ export class AuthController {
|
||||
}
|
||||
|
||||
@Serealize(AuthOperadorOutputDto)
|
||||
@Recaptcha()
|
||||
@Post('login-operador')
|
||||
@ApiOperation({
|
||||
description: 'Endpoint utilizado para el login del panel del operador.',
|
||||
@@ -60,6 +63,7 @@ export class AuthController {
|
||||
}
|
||||
|
||||
@Serealize(AuthUsuarioOutputDto)
|
||||
@Recaptcha()
|
||||
@Post('login-usuario')
|
||||
@ApiOperation({
|
||||
description: 'Endpoint utilizado para el login del usuario.',
|
||||
|
||||
Reference in New Issue
Block a user