From 16383b46d14a7430fe16473216c42457cffaad34 Mon Sep 17 00:00:00 2001 From: Douglas DUTEIL Date: Thu, 5 Dec 2024 11:12:23 +0100 Subject: [PATCH] fix(www): remove explicit catch of leaked password on change --- src/controllers/user/update-password.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/controllers/user/update-password.ts b/src/controllers/user/update-password.ts index 2961ae04f..a4274a3a6 100644 --- a/src/controllers/user/update-password.ts +++ b/src/controllers/user/update-password.ts @@ -1,4 +1,3 @@ -import * as Sentry from "@sentry/node"; import type { NextFunction, Request, Response } from "express"; import { z, ZodError } from "zod"; import { MONCOMPTEPRO_HOST } from "../../config/env"; @@ -144,7 +143,6 @@ export const postChangePasswordController = async ( if (error instanceof LeakedPasswordError) { const resetPasswordToken = req.body.reset_password_token; - Sentry.captureException(error); return res.redirect( `/users/change-password?reset_password_token=${resetPasswordToken}¬ification=leaked_password`, );