Fix duplicate auth nonce guard
This commit is contained in:
parent
0156d562ea
commit
4d9d3aed8a
@ -1,4 +1,4 @@
|
|||||||
import { Body, Controller, Delete, Get, Param, Patch, Post, Query, Req, UseGuards } from "@nestjs/common";
|
import { Body, Controller, Delete, Get, Param, Patch, Post, Query, Req } from "@nestjs/common";
|
||||||
import { Request } from "express";
|
import { Request } from "express";
|
||||||
import { ok } from "../common/response";
|
import { ok } from "../common/response";
|
||||||
import { requestContextFrom } from "../abuse/abuse.types";
|
import { requestContextFrom } from "../abuse/abuse.types";
|
||||||
@ -9,12 +9,10 @@ import { RegisterDto } from "./dto/register.dto";
|
|||||||
import { UpdateProfileDto } from "./dto/update-profile.dto";
|
import { UpdateProfileDto } from "./dto/update-profile.dto";
|
||||||
import { ForgotPasswordDto } from "./dto/forgot-password.dto";
|
import { ForgotPasswordDto } from "./dto/forgot-password.dto";
|
||||||
import { ResetPasswordDto } from "./dto/reset-password.dto";
|
import { ResetPasswordDto } from "./dto/reset-password.dto";
|
||||||
import { JwtAuthGuard } from "../common/guards/jwt-auth.guard";
|
|
||||||
import { CurrentUser } from "../common/decorators/current-user.decorator";
|
import { CurrentUser } from "../common/decorators/current-user.decorator";
|
||||||
import { Public } from "../common/decorators/public.decorator";
|
import { Public } from "../common/decorators/public.decorator";
|
||||||
|
|
||||||
@Controller("auth")
|
@Controller("auth")
|
||||||
@UseGuards(JwtAuthGuard)
|
|
||||||
export class AuthController {
|
export class AuthController {
|
||||||
constructor(
|
constructor(
|
||||||
private readonly authService: AuthService,
|
private readonly authService: AuthService,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user