diff --git a/pandora_console/extras/mr/53.sql b/pandora_console/extras/mr/53.sql new file mode 100644 index 0000000000..17755cb642 --- /dev/null +++ b/pandora_console/extras/mr/53.sql @@ -0,0 +1,5 @@ +START TRANSACTION; +ALTER TABLE `tusuario` ADD COLUMN `local_user` tinyint(1) unsigned NOT NULL DEFAULT 0; + + +COMMIT; \ No newline at end of file diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql index d6db1ad76e..27565b0b29 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql @@ -1549,6 +1549,7 @@ ALTER TABLE `tusuario` MODIFY COLUMN `default_event_filter` int(10) unsigned NOT DROP INDEX `fk_id_filter`; ALTER TABLE `tusuario` ADD COLUMN `integria_user_level_user` VARCHAR(60); ALTER TABLE `tusuario` ADD COLUMN `integria_user_level_pass` VARCHAR(45); +ALTER TABLE `tusuario` ADD COLUMN `local_user` tinyint(1) unsigned NOT NULL DEFAULT 0; -- --------------------------------------------------------------------- diff --git a/pandora_console/godmode/users/configure_user.php b/pandora_console/godmode/users/configure_user.php index b91609e257..6fb6428dee 100644 --- a/pandora_console/godmode/users/configure_user.php +++ b/pandora_console/godmode/users/configure_user.php @@ -285,6 +285,7 @@ if ($new_user && $config['admin_can_add_user']) { $user_info['language'] = 'default'; $user_info['timezone'] = ''; $user_info['not_login'] = false; + $user_info['local_user'] = false; $user_info['strict_acl'] = false; $user_info['session_time'] = 0; $user_info['middlename'] = 0; @@ -370,6 +371,7 @@ if ($create_user) { } $values['not_login'] = (bool) get_parameter('not_login', false); + $values['local_user'] = (bool) get_parameter('local_user', false); $values['middlename'] = get_parameter('middlename', 0); $values['strict_acl'] = (bool) get_parameter('strict_acl', false); $values['session_time'] = (int) get_parameter('session_time', 0); @@ -571,6 +573,7 @@ if ($update_user) { } $values['not_login'] = (bool) get_parameter('not_login', false); + $values['local_user'] = (bool) get_parameter('local_user', false); $values['strict_acl'] = (bool) get_parameter('strict_acl', false); $values['session_time'] = (int) get_parameter('session_time', 0); @@ -1212,6 +1215,18 @@ $not_login .= html_print_checkbox_switch( true ).''; +$local_user = '
'.__('Local user').'
'; +$local_user .= ui_print_help_tip( + __('The user with local authentication enabled will always use local authentication.'), + true +); +$local_user .= html_print_checkbox_switch( + 'local_user', + 1, + $user_info['local_user'], + true +).''.__('Session Time'); $session_time .= ui_print_help_tip( __('This is defined in minutes, If you wish a permanent session should putting -1 in this field.'), @@ -1379,7 +1394,7 @@ if ($id != '' && !$is_err) { echo '
Extra info
'.$email.$phone.$not_login.$session_time.'Extra info
'.$email.$phone.$not_login.$local_user.$session_time.'