mirror of
https://github.com/e107inc/e107.git
synced 2025-04-22 13:41:52 +02:00
social_login_config::getSupportedConfiguredProviderConfigs()
is a better name than `\social_login_config::getValidConfiguredProviderConfigs()` because the method does not validate the provider configs.
This commit is contained in:
parent
c96d64e275
commit
8e8622f12d
e107_core
e107_handlers
e107_plugins/social/includes
@ -105,7 +105,7 @@ class core_system_xup_controller extends eController
|
||||
|
||||
|
||||
$testUrl = SITEURL."?route=system/xup/test";
|
||||
$providers = $manager->getValidConfiguredProviderConfigs();
|
||||
$providers = $manager->getSupportedConfiguredProviderConfigs();
|
||||
|
||||
foreach($providers as $key=>$var)
|
||||
{
|
||||
|
@ -125,7 +125,7 @@ class signup_shortcodes extends e_shortcode
|
||||
|
||||
|
||||
$manager = new social_login_config(e107::getConfig());
|
||||
$providers = $manager->getValidConfiguredProviderConfigs();
|
||||
$providers = $manager->getSupportedConfiguredProviderConfigs();
|
||||
|
||||
foreach ($providers as $p => $v)
|
||||
{
|
||||
|
@ -1144,8 +1144,8 @@ class e_user_provider
|
||||
else
|
||||
{
|
||||
$this->_config = array(
|
||||
"callback" => $this->generateCallbackUrl($provider),
|
||||
"providers" => $this->social_login_config_manager->getValidConfiguredProviderConfigs(),
|
||||
"callback" => $this->generateCallbackUrl($provider),
|
||||
"providers" => $this->social_login_config_manager->getSupportedConfiguredProviderConfigs(),
|
||||
"debug_mode" => 'error',
|
||||
"debug_file" => e_LOG . "hybridAuth.log"
|
||||
);
|
||||
|
@ -162,9 +162,13 @@ class social_login_config
|
||||
|
||||
/**
|
||||
* Get configs of providers that are supported and configured
|
||||
*
|
||||
* These configs are not validated here by the social login implementation.
|
||||
* This method only filters out providers that are not supported and not configured.
|
||||
*
|
||||
* @return array Associative array where the key is the denormalized provider name and the value is its config
|
||||
*/
|
||||
public function getValidConfiguredProviderConfigs()
|
||||
public function getSupportedConfiguredProviderConfigs()
|
||||
{
|
||||
$supported_providers = $this->getSupportedProviders();
|
||||
$configured_providers = $this->getConfiguredProviders();
|
||||
@ -233,6 +237,9 @@ class social_login_config
|
||||
return $output;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function getSocialLoginConfig()
|
||||
{
|
||||
$config = $this->config->get(self::SOCIAL_LOGIN_PREF);
|
||||
|
Loading…
x
Reference in New Issue
Block a user