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

Issue #3266217: Fix wrong Formbit process for Varbase Social Single Sign-On...

Issue #3266217: Fix wrong Formbit process for Varbase Social Single Sign-On extra config. Not to use the simple.setting config
parent 5632f88b
No related branches found
No related tags found
3 merge requests!24Issue #3301451: Composer is fixed to docroot folder Primary tabs View(active tab),!10Issue #3269421: Add exception messages for VLB automated testing step definitions,!9Issue #3266504: Update Automated Functional Testing Readme File
......@@ -14,13 +14,13 @@ use Drupal\Core\Form\FormStateInterface;
* Array of config names, and list of values.
*/
function varbase_auth_get_editable_config_names() {
$editable_cofnigs = [
'simple.settings' => [
$editable_configs = [
'varbase_auth' => [
'social_auth_type' => ['social_auth_google'],
],
];
return $editable_cofnigs;
return $editable_configs;
}
/**
......@@ -56,12 +56,7 @@ function varbase_auth_build_formbit(array &$formbit, FormStateInterface &$form_s
* Editable cofnig values.
*/
function varbase_auth_submit_formbit(array $editable_config_values) {
$configFactory = \Drupal::configFactory()->getEditable('simple.settings');
$configFactory->set('social_auth_type', $editable_config_values['simple.settings']['social_auth_type']);
$configFactory->save(TRUE);
// From the Config and enable the modules.
$auth_modules = $configFactory->get('social_auth_type');
$auth_modules = $editable_config_values['varbase_auth']['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