Skip to content
Snippets Groups Projects
Commit 170a098e authored by Rajab Natshah's avatar Rajab Natshah
Browse files

Issue #2941397: Added [Varbase Auth] feature module for Varbase Social Single...

Issue #2941397: Added [Varbase Auth] feature module for Varbase Social Single Sign-On authentication with a number of default supported social networks
parent 72d42280
No related branches found
No related tags found
No related merge requests found
......@@ -60,16 +60,7 @@ function varbase_auth_submit_formbit(array $editable_config_values) {
$configFactory->set('social_auth_type', $editable_config_values['simple.settings']['social_auth_type']);
$configFactory->save(TRUE);
_varbase_auth_enable_modules();
}
/**
* Custom function to get checked values.
*
* From the Config and enable the modules.
*/
function _varbase_auth_enable_modules() {
$configFactory = \Drupal::configFactory()->getEditable('simple.settings');
// From the Config and enable the modules.
$auth_modules = $configFactory->get('social_auth_type');
if (isset($auth_modules) && is_array($auth_modules) && count($auth_modules) > 0) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment