|
@@ 1958-1962 (lines=5) @@
|
| 1955 |
|
$state = $this->request->getSession()->getSecret( 'AuthManager::accountCreationState' ); |
| 1956 |
|
return is_array( $state ) ? $state['continueRequests'] : []; |
| 1957 |
|
|
| 1958 |
|
case self::ACTION_LINK: |
| 1959 |
|
$providers = array_filter( $this->getPrimaryAuthenticationProviders(), function ( $p ) { |
| 1960 |
|
return $p->accountCreationType() === PrimaryAuthenticationProvider::TYPE_LINK; |
| 1961 |
|
} ); |
| 1962 |
|
break; |
| 1963 |
|
|
| 1964 |
|
case self::ACTION_UNLINK: |
| 1965 |
|
$providers = array_filter( $this->getPrimaryAuthenticationProviders(), function ( $p ) { |
|
@@ 1964-1971 (lines=8) @@
|
| 1961 |
|
} ); |
| 1962 |
|
break; |
| 1963 |
|
|
| 1964 |
|
case self::ACTION_UNLINK: |
| 1965 |
|
$providers = array_filter( $this->getPrimaryAuthenticationProviders(), function ( $p ) { |
| 1966 |
|
return $p->accountCreationType() === PrimaryAuthenticationProvider::TYPE_LINK; |
| 1967 |
|
} ); |
| 1968 |
|
|
| 1969 |
|
// To providers, unlink and remove are identical. |
| 1970 |
|
$providerAction = self::ACTION_REMOVE; |
| 1971 |
|
break; |
| 1972 |
|
|
| 1973 |
|
case self::ACTION_LINK_CONTINUE: |
| 1974 |
|
$state = $this->request->getSession()->getSecret( 'AuthManager::accountLinkState' ); |