Prevent getByEmail method from being called in LoginController if input for e-mail is empty
MODIFY
app/Http/Controllers/LoginController.php
app/Http/Controllers/LoginController.php
@@ -39,9 +39,11 @@ class LoginController extends Controller
return redirect()->route('dashboard');
} else {
+ if ($request->input('email')) {
$user = $this->userRepository->getByEmail($request->input('email'));
$this->loginAttemptRepository->create($user ? $user->id : null, $request->ip(), true);
+ }
$request->flash();

Prevent getByEmail method from being called in LoginController if input for e-mail is empty