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

Fix username enumeration #1

Merged
merged 1 commit into from
Aug 3, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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