Skip to content

Commit

Permalink
change user not found message returned to prevent enumeration attack
Browse files Browse the repository at this point in the history
  • Loading branch information
Andres Campanario committed Jan 8, 2025
1 parent aefe695 commit 706ce20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/Traits/PasswordManagementTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function changePassword($id = null)
}
}
} catch (UserNotFoundException $exception) {
$this->Flash->error(__d('cake_d_c/users', 'User was not found 1'));
$this->Flash->error(__d('cake_d_c/users', 'User was not found'));
} catch (WrongPasswordException $wpe) {
$this->Flash->error($wpe->getMessage());
} catch (Exception $exception) {
Expand Down

0 comments on commit 706ce20

Please sign in to comment.