|
@@ 603-614 (lines=12) @@
|
| 600 |
|
$beginReqs = $state['reqs']; |
| 601 |
|
|
| 602 |
|
foreach ( $this->getSecondaryAuthenticationProviders() as $id => $provider ) { |
| 603 |
|
if ( !isset( $state['secondary'][$id] ) ) { |
| 604 |
|
// This provider isn't started yet, so we pass it the set |
| 605 |
|
// of reqs from beginAuthentication instead of whatever |
| 606 |
|
// might have been used by a previous provider in line. |
| 607 |
|
$func = 'beginSecondaryAuthentication'; |
| 608 |
|
$res = $provider->beginSecondaryAuthentication( $user, $beginReqs ); |
| 609 |
|
} elseif ( !$state['secondary'][$id] ) { |
| 610 |
|
$func = 'continueSecondaryAuthentication'; |
| 611 |
|
$res = $provider->continueSecondaryAuthentication( $user, $reqs ); |
| 612 |
|
} else { |
| 613 |
|
continue; |
| 614 |
|
} |
| 615 |
|
switch ( $res->status ) { |
| 616 |
|
case AuthenticationResponse::PASS; |
| 617 |
|
$this->logger->debug( "Secondary login with $id succeeded" ); |
|
@@ 1397-1408 (lines=12) @@
|
| 1394 |
|
$beginReqs = $state['reqs']; |
| 1395 |
|
|
| 1396 |
|
foreach ( $this->getSecondaryAuthenticationProviders() as $id => $provider ) { |
| 1397 |
|
if ( !isset( $state['secondary'][$id] ) ) { |
| 1398 |
|
// This provider isn't started yet, so we pass it the set |
| 1399 |
|
// of reqs from beginAuthentication instead of whatever |
| 1400 |
|
// might have been used by a previous provider in line. |
| 1401 |
|
$func = 'beginSecondaryAccountCreation'; |
| 1402 |
|
$res = $provider->beginSecondaryAccountCreation( $user, $creator, $beginReqs ); |
| 1403 |
|
} elseif ( !$state['secondary'][$id] ) { |
| 1404 |
|
$func = 'continueSecondaryAccountCreation'; |
| 1405 |
|
$res = $provider->continueSecondaryAccountCreation( $user, $creator, $reqs ); |
| 1406 |
|
} else { |
| 1407 |
|
continue; |
| 1408 |
|
} |
| 1409 |
|
switch ( $res->status ) { |
| 1410 |
|
case AuthenticationResponse::PASS; |
| 1411 |
|
$this->logger->debug( __METHOD__ . ": Secondary creation passed by $id", [ |