Bug: T158364
Change-Id: I049c2d6da4720341ef2a380879ac19aff444b1d0
$data = $this->manager->getAuthenticationSessionData( 'LoginThrottle' );
if ( !$data ) {
- $this->logger->error( 'throttler data not found for {user}', [ 'user' => $user->getName() ] );
+ // this can occur when login is happening via AuthenticationRequest::$loginRequest
+ // so testForAuthentication is skipped
+ $this->logger->info( 'throttler data not found for {user}', [ 'user' => $user->getName() ] );
return;
}
$provider->postAuthentication( \User::newFromName( 'SomeUser' ),
AuthenticationResponse::newPass() );
$this->assertSame( [
- [ \Psr\Log\LogLevel::ERROR, 'throttler data not found for {user}' ],
+ [ \Psr\Log\LogLevel::INFO, 'throttler data not found for {user}' ],
], $logger->getBuffer() );
}
}