mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Add default value of field advance ad configuration. Gitlab: #367
This commit is contained in:
parent
fc7e2f69b7
commit
070db42c41
@ -268,7 +268,9 @@ function process_user_login_remote ($login, $pass, $api = false) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($config["auth"] === 'ad' && (isset($config['ad_advanced_config']) && $config['ad_advanced_config'])) {
|
if ($config["auth"] === 'ad' &&
|
||||||
|
(isset($config['ad_advanced_config']) &&
|
||||||
|
$config['ad_advanced_config'])) {
|
||||||
|
|
||||||
|
|
||||||
if ( defined('METACONSOLE') ) {
|
if ( defined('METACONSOLE') ) {
|
||||||
|
@ -1253,6 +1253,10 @@ function config_process_config () {
|
|||||||
config_update_value ( 'ad_advanced_config', 0);
|
config_update_value ( 'ad_advanced_config', 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!isset ($config['ad_adv_user_node'])) {
|
||||||
|
config_update_value ( 'ad_adv_user_node', 1);
|
||||||
|
}
|
||||||
|
|
||||||
if (!isset ($config['ad_domain'])) {
|
if (!isset ($config['ad_domain'])) {
|
||||||
config_update_value ( 'ad_domain', '');
|
config_update_value ( 'ad_domain', '');
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ function profile_create_user_profile ($id_user,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($assignUser !== false)
|
if ($assignUser !== false)
|
||||||
$assign = $assignUser;
|
$assign = $assignUser;
|
||||||
|
|
||||||
$insert = array (
|
$insert = array (
|
||||||
"id_usuario" => $id_user,
|
"id_usuario" => $id_user,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user