mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/LoginNotify
synced 2024-11-11 16:49:30 +00:00
If the user is known in the slow path, don't forget to notify
If the IP address associated with a failed login is found in CheckUser for the relevant user, the notification was previously omitted. Notification of failure with a known IP was only possible when the IP was in the cache or cookie. So, fix that. Change-Id: I498e6b71d0fab9dd9af63c9c5f88fbcaf6a53fc3
This commit is contained in:
parent
c524ee65a4
commit
a247ba5c79
|
@ -798,6 +798,8 @@ class LoginNotify implements LoggerAwareInterface {
|
|||
$isKnown = $this->isKnownSystemSlow( $user, $subnet, $resultSoFar );
|
||||
if ( !$isKnown ) {
|
||||
$this->recordLoginFailureFromUnknownSystem( $user );
|
||||
} else {
|
||||
$this->recordLoginFailureFromKnownSystem( $user );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue