Skip to content

Commit

Permalink
generic response message in lost password functionality to avoid acco…
Browse files Browse the repository at this point in the history
…unt enumeration
  • Loading branch information
Guite committed Jan 3, 2022
1 parent 09a396e commit 33ede73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG-3.0.md
Expand Up @@ -7,6 +7,7 @@

- Fixes:
- [Admin] Sanitize extension title in admin panel.
- [ZAuth] Generic response message in lost password functionality to avoid account enumeration.

- Features:
- _there should be none_
Expand Down
2 changes: 1 addition & 1 deletion src/system/ZAuthModule/Controller/AccountController.php
Expand Up @@ -235,7 +235,7 @@ public function lostPasswordResetAction(
/** @var UserEntity $user */
$user = $userRepository->find($requestDetails['userId']);
if (null === $user) {
$this->addFlash('error', 'User not found. Please contact a site administrator for assistance.');
$this->addFlash('error', 'If an account exists with that email or username, a password reset will be sent to it.');

return $this->redirectToRoute($redirectToRoute);
}
Expand Down

0 comments on commit 33ede73

Please sign in to comment.