Skip to content

Commit

Permalink
fixup! chore(tests): add tests for handleLoginFailed
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Mar 16, 2023
1 parent 23f7776 commit 50e07a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/User/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ private function handleLoginFailed(IThrottler $throttler, int $currentDelay, str
$this->logger->warning("Login failed: '" . $user . "' (Remote IP: '" . $remoteAddress . "')", ['app' => 'core']);

$throttler->registerAttempt('login', $remoteAddress, ['user' => $user]);
$this->dispatcher->dispatchTyped(new OC\Authentication\Events\LoginFailed($user, $password));
$this->dispatcher->dispatchTyped(new OC\Authentication\Events\LoginFailed($user));

if ($currentDelay === 0) {
$throttler->sleepDelay($remoteAddress, 'login');
Expand Down

0 comments on commit 50e07a5

Please sign in to comment.