mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-19 19:01:39 +00:00
Clean up notifications
This commit is contained in:
@@ -127,10 +127,14 @@ class LoginController extends Controller
|
||||
}
|
||||
app('log')->warning('Login attempt failed.');
|
||||
$username = (string) $request->get($this->username());
|
||||
if (null === $this->repository->findByEmail($username)) {
|
||||
$user = $this->repository->findByEmail($username);
|
||||
if (null === $user) {
|
||||
// send event to owner.
|
||||
event(new UnknownUserAttemptedLogin($username));
|
||||
}
|
||||
if(null !== $user) {
|
||||
event(new UserAttemptedLogin($user));
|
||||
}
|
||||
|
||||
// Copied directly from AuthenticatesUsers, but with logging added:
|
||||
// If the login attempt was unsuccessful we will increment the number of attempts
|
||||
|
Reference in New Issue
Block a user