|
@@ 458-470 (lines=13) @@
|
| 455 |
|
$state['primaryResponse'] = $res; |
| 456 |
|
$this->logger->debug( "Primary login with $id succeeded" ); |
| 457 |
|
break 2; |
| 458 |
|
case AuthenticationResponse::FAIL; |
| 459 |
|
$this->logger->debug( "Login failed in primary authentication by $id" ); |
| 460 |
|
if ( $res->createRequest || $state['maybeLink'] ) { |
| 461 |
|
$res->createRequest = new CreateFromLoginAuthenticationRequest( |
| 462 |
|
$res->createRequest, $state['maybeLink'] |
| 463 |
|
); |
| 464 |
|
} |
| 465 |
|
$this->callMethodOnProviders( 7, 'postAuthentication', |
| 466 |
|
[ User::newFromName( $guessUserName ) ?: null, $res ] |
| 467 |
|
); |
| 468 |
|
$session->remove( 'AuthManager::authnState' ); |
| 469 |
|
\Hooks::run( 'AuthManagerLoginAuthenticateAudit', [ $res, null, $guessUserName ] ); |
| 470 |
|
return $res; |
| 471 |
|
case AuthenticationResponse::ABSTAIN; |
| 472 |
|
// Continue loop |
| 473 |
|
break; |
|
@@ 524-536 (lines=13) @@
|
| 521 |
|
$state['primaryResponse'] = $res; |
| 522 |
|
$this->logger->debug( "Primary login with $id succeeded" ); |
| 523 |
|
break; |
| 524 |
|
case AuthenticationResponse::FAIL; |
| 525 |
|
$this->logger->debug( "Login failed in primary authentication by $id" ); |
| 526 |
|
if ( $res->createRequest || $state['maybeLink'] ) { |
| 527 |
|
$res->createRequest = new CreateFromLoginAuthenticationRequest( |
| 528 |
|
$res->createRequest, $state['maybeLink'] |
| 529 |
|
); |
| 530 |
|
} |
| 531 |
|
$this->callMethodOnProviders( 7, 'postAuthentication', |
| 532 |
|
[ User::newFromName( $guessUserName ) ?: null, $res ] |
| 533 |
|
); |
| 534 |
|
$session->remove( 'AuthManager::authnState' ); |
| 535 |
|
\Hooks::run( 'AuthManagerLoginAuthenticateAudit', [ $res, null, $guessUserName ] ); |
| 536 |
|
return $res; |
| 537 |
|
case AuthenticationResponse::REDIRECT; |
| 538 |
|
case AuthenticationResponse::UI; |
| 539 |
|
$this->logger->debug( "Primary login with $id returned $res->status" ); |