|
@@ 590-601 (lines=12) @@
|
| 587 |
|
$beginReqs = $state['reqs']; |
| 588 |
|
|
| 589 |
|
foreach ( $this->getSecondaryAuthenticationProviders() as $id => $provider ) { |
| 590 |
|
if ( !isset( $state['secondary'][$id] ) ) { |
| 591 |
|
// This provider isn't started yet, so we pass it the set |
| 592 |
|
// of reqs from beginAuthentication instead of whatever |
| 593 |
|
// might have been used by a previous provider in line. |
| 594 |
|
$func = 'beginSecondaryAuthentication'; |
| 595 |
|
$res = $provider->beginSecondaryAuthentication( $user, $beginReqs ); |
| 596 |
|
} elseif ( !$state['secondary'][$id] ) { |
| 597 |
|
$func = 'continueSecondaryAuthentication'; |
| 598 |
|
$res = $provider->continueSecondaryAuthentication( $user, $reqs ); |
| 599 |
|
} else { |
| 600 |
|
continue; |
| 601 |
|
} |
| 602 |
|
switch ( $res->status ) { |
| 603 |
|
case AuthenticationResponse::PASS; |
| 604 |
|
$this->logger->debug( "Secondary login with $id succeeded" ); |
|
@@ 1413-1424 (lines=12) @@
|
| 1410 |
|
$beginReqs = $state['reqs']; |
| 1411 |
|
|
| 1412 |
|
foreach ( $this->getSecondaryAuthenticationProviders() as $id => $provider ) { |
| 1413 |
|
if ( !isset( $state['secondary'][$id] ) ) { |
| 1414 |
|
// This provider isn't started yet, so we pass it the set |
| 1415 |
|
// of reqs from beginAuthentication instead of whatever |
| 1416 |
|
// might have been used by a previous provider in line. |
| 1417 |
|
$func = 'beginSecondaryAccountCreation'; |
| 1418 |
|
$res = $provider->beginSecondaryAccountCreation( $user, $creator, $beginReqs ); |
| 1419 |
|
} elseif ( !$state['secondary'][$id] ) { |
| 1420 |
|
$func = 'continueSecondaryAccountCreation'; |
| 1421 |
|
$res = $provider->continueSecondaryAccountCreation( $user, $creator, $reqs ); |
| 1422 |
|
} else { |
| 1423 |
|
continue; |
| 1424 |
|
} |
| 1425 |
|
switch ( $res->status ) { |
| 1426 |
|
case AuthenticationResponse::PASS; |
| 1427 |
|
$this->logger->debug( __METHOD__ . ": Secondary creation passed by $id", [ |