@@ 655-660 (lines=6) @@ | ||
652 | case AuthenticationResponse::ABSTAIN; |
|
653 | $state['secondary'][$id] = true; |
|
654 | break; |
|
655 | case AuthenticationResponse::FAIL; |
|
656 | $this->logger->debug( "Login failed in secondary authentication by $id" ); |
|
657 | $this->callMethodOnProviders( 7, 'postAuthentication', [ $user, $res ] ); |
|
658 | $session->remove( 'AuthManager::authnState' ); |
|
659 | \Hooks::run( 'AuthManagerLoginAuthenticateAudit', [ $res, $user, $user->getName() ] ); |
|
660 | return $res; |
|
661 | case AuthenticationResponse::REDIRECT; |
|
662 | case AuthenticationResponse::UI; |
|
663 | $this->logger->debug( "Secondary login with $id returned " . $res->status ); |
|
@@ 1303-1310 (lines=8) @@ | ||
1300 | $state['primary'] = $id; |
|
1301 | $state['primaryResponse'] = $res; |
|
1302 | break 2; |
|
1303 | case AuthenticationResponse::FAIL; |
|
1304 | $this->logger->debug( __METHOD__ . ": Primary creation failed by $id", [ |
|
1305 | 'user' => $user->getName(), |
|
1306 | 'creator' => $creator->getName(), |
|
1307 | ] ); |
|
1308 | $this->callMethodOnProviders( 7, 'postAccountCreation', [ $user, $creator, $res ] ); |
|
1309 | $session->remove( 'AuthManager::accountCreationState' ); |
|
1310 | return $res; |
|
1311 | case AuthenticationResponse::ABSTAIN; |
|
1312 | // Continue loop |
|
1313 | break; |
|
@@ 1369-1376 (lines=8) @@ | ||
1366 | ] ); |
|
1367 | $state['primaryResponse'] = $res; |
|
1368 | break; |
|
1369 | case AuthenticationResponse::FAIL; |
|
1370 | $this->logger->debug( __METHOD__ . ": Primary creation failed by $id", [ |
|
1371 | 'user' => $user->getName(), |
|
1372 | 'creator' => $creator->getName(), |
|
1373 | ] ); |
|
1374 | $this->callMethodOnProviders( 7, 'postAccountCreation', [ $user, $creator, $res ] ); |
|
1375 | $session->remove( 'AuthManager::accountCreationState' ); |
|
1376 | return $res; |
|
1377 | case AuthenticationResponse::REDIRECT; |
|
1378 | case AuthenticationResponse::UI; |
|
1379 | $this->logger->debug( __METHOD__ . ": Primary creation $res->status by $id", [ |