Browse Source

fix(api): fix email verification endpoint not working when not authenticated

pull/48/head
isra el 1 year ago
parent
commit
d3e0bb5885
  1. 1
      api/src/auth/auth.controller.ts

1
api/src/auth/auth.controller.ts

@ -157,7 +157,6 @@ export class AuthController {
@ApiOperation({ summary: 'Verify Email' }) @ApiOperation({ summary: 'Verify Email' })
@HttpCode(HttpStatus.OK) @HttpCode(HttpStatus.OK)
@ApiBearerAuth() @ApiBearerAuth()
@UseGuards(AuthGuard)
@Post('/verify-email') @Post('/verify-email')
async verifyEmail(@Body() input: { userId: string; verificationCode: string }) { async verifyEmail(@Body() input: { userId: string; verificationCode: string }) {
return await this.authService.verifyEmail(input) return await this.authService.verifyEmail(input)

Loading…
Cancel
Save