Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from mufeedvh/develop
Browse files Browse the repository at this point in the history
Fix username enumeration
  • Loading branch information
JamieSlome committed Aug 3, 2020
2 parents 6fc7aa1 + 4b0dfb2 commit f925b8f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function requestAction($email)
}

if (!$user = User::findByEmail($email)) {
throw new Exception(__('Unknown email address.'));
throw new Exception(__('If this email exists, you will receive an email with the reset instructions.'));
}

if ($user->isBlocked()) {
Expand All @@ -69,7 +69,7 @@ public function requestAction($email)
$user->activation = $key;
$user->save();

App::message()->success(__('Check your email for the confirmation link.'));
App::message()->success(__('If this email exists, you will receive an email with the reset instructions.'));

return App::redirect('@user/login');

Expand Down

0 comments on commit f925b8f

Please sign in to comment.