mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-22 12:11:19 +00:00
Auto commit for release 'branch-v6.2' on 2024-12-14
This commit is contained in:
@@ -128,12 +128,12 @@ class LoginController extends Controller
|
||||
}
|
||||
app('log')->warning('Login attempt failed.');
|
||||
$username = (string) $request->get($this->username());
|
||||
$user = $this->repository->findByEmail($username);
|
||||
$user = $this->repository->findByEmail($username);
|
||||
if (null === $user) {
|
||||
// send event to owner.
|
||||
event(new UnknownUserAttemptedLogin($username));
|
||||
}
|
||||
if(null !== $user) {
|
||||
if (null !== $user) {
|
||||
event(new UserAttemptedLogin($user));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user