|
@@ 622-627 (lines=6) @@
|
| 619 |
|
case AuthenticationResponse::ABSTAIN; |
| 620 |
|
$state['secondary'][$id] = true; |
| 621 |
|
break; |
| 622 |
|
case AuthenticationResponse::FAIL; |
| 623 |
|
$this->logger->debug( "Login failed in secondary authentication by $id" ); |
| 624 |
|
$this->callMethodOnProviders( 7, 'postAuthentication', [ $user, $res ] ); |
| 625 |
|
$session->remove( 'AuthManager::authnState' ); |
| 626 |
|
\Hooks::run( 'AuthManagerLoginAuthenticateAudit', [ $res, $user, $user->getName() ] ); |
| 627 |
|
return $res; |
| 628 |
|
case AuthenticationResponse::REDIRECT; |
| 629 |
|
case AuthenticationResponse::UI; |
| 630 |
|
$this->logger->debug( "Secondary login with $id returned " . $res->status ); |
|
@@ 1249-1256 (lines=8) @@
|
| 1246 |
|
$state['primary'] = $id; |
| 1247 |
|
$state['primaryResponse'] = $res; |
| 1248 |
|
break 2; |
| 1249 |
|
case AuthenticationResponse::FAIL; |
| 1250 |
|
$this->logger->debug( __METHOD__ . ": Primary creation failed by $id", [ |
| 1251 |
|
'user' => $user->getName(), |
| 1252 |
|
'creator' => $creator->getName(), |
| 1253 |
|
] ); |
| 1254 |
|
$this->callMethodOnProviders( 7, 'postAccountCreation', [ $user, $creator, $res ] ); |
| 1255 |
|
$session->remove( 'AuthManager::accountCreationState' ); |
| 1256 |
|
return $res; |
| 1257 |
|
case AuthenticationResponse::ABSTAIN; |
| 1258 |
|
// Continue loop |
| 1259 |
|
break; |
|
@@ 1315-1322 (lines=8) @@
|
| 1312 |
|
] ); |
| 1313 |
|
$state['primaryResponse'] = $res; |
| 1314 |
|
break; |
| 1315 |
|
case AuthenticationResponse::FAIL; |
| 1316 |
|
$this->logger->debug( __METHOD__ . ": Primary creation failed by $id", [ |
| 1317 |
|
'user' => $user->getName(), |
| 1318 |
|
'creator' => $creator->getName(), |
| 1319 |
|
] ); |
| 1320 |
|
$this->callMethodOnProviders( 7, 'postAccountCreation', [ $user, $creator, $res ] ); |
| 1321 |
|
$session->remove( 'AuthManager::accountCreationState' ); |
| 1322 |
|
return $res; |
| 1323 |
|
case AuthenticationResponse::REDIRECT; |
| 1324 |
|
case AuthenticationResponse::UI; |
| 1325 |
|
$this->logger->debug( __METHOD__ . ": Primary creation $res->status by $id", [ |