Skip to content

Commit

Permalink
fix(www): remove explicit catch of leaked password on change
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasduteil committed Dec 5, 2024
1 parent c61085c commit 16383b4
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/controllers/user/update-password.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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}&notification=leaked_password`,
);
Expand Down

0 comments on commit 16383b4

Please sign in to comment.