mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Added an option to allow the users to enable the 2 step auth
This commit is contained in:
parent
d399ccbd1f
commit
33c6789144
@ -94,6 +94,15 @@ if (enterprise_installed()) {
|
|||||||
add_enterprise_auth_options($table, 12);
|
add_enterprise_auth_options($table, 12);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Enable double authentication
|
||||||
|
$row = array();
|
||||||
|
$row[] = __('Double authentication')
|
||||||
|
. ui_print_help_tip(__("If this option is enabled, the users can use double authentication with their accounts"), true);
|
||||||
|
$row[] = __('Yes').' '.html_print_radio_button('double_auth_enabled', 1, '', $config['double_auth_enabled'], true)
|
||||||
|
.' '
|
||||||
|
. __('No').' '.html_print_radio_button('double_auth_enabled', 0, '', $config['double_auth_enabled'], true);
|
||||||
|
$table->data[] = $row;
|
||||||
|
|
||||||
echo '<form id="form_setup" method="post">';
|
echo '<form id="form_setup" method="post">';
|
||||||
html_print_input_hidden ('update_config', 1);
|
html_print_input_hidden ('update_config', 1);
|
||||||
html_print_table ($table);
|
html_print_table ($table);
|
||||||
|
@ -321,6 +321,8 @@ function config_update_config () {
|
|||||||
$error_update[] = __('User');
|
$error_update[] = __('User');
|
||||||
if (!config_update_value ('rintegria_pass', get_parameter ('rintegria_pass')))
|
if (!config_update_value ('rintegria_pass', get_parameter ('rintegria_pass')))
|
||||||
$error_update[] = __('Password');
|
$error_update[] = __('Password');
|
||||||
|
if (!config_update_value ('double_auth_enabled', get_parameter ('double_auth_enabled')))
|
||||||
|
$error_update[] = __('Double authentication');
|
||||||
/////////////
|
/////////////
|
||||||
break;
|
break;
|
||||||
case 'perf':
|
case 'perf':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user