From 3d04d6995f154f90fe0fc300573a1c454f595a66 Mon Sep 17 00:00:00 2001
From: Marlene Simondant <msimondant@grandlyon.com>
Date: Wed, 19 Jun 2024 15:56:46 +0200
Subject: [PATCH] Fix(change-email): remove guard on change-email (not really
 necessary and caused an error when user is no longer connected)

---
 src/users/controllers/users.controller.ts | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/users/controllers/users.controller.ts b/src/users/controllers/users.controller.ts
index 359fe25f5..117bb8455 100644
--- a/src/users/controllers/users.controller.ts
+++ b/src/users/controllers/users.controller.ts
@@ -136,7 +136,6 @@ export class UsersController {
     );
   }
 
-  @UseGuards(JwtAuthGuard)
   @Post('change-email')
   @ApiResponse({ status: 201, description: 'Email confirmation send' })
   @ApiResponse({ status: 401, description: 'Invalid Email' })
-- 
GitLab