Added an option to allow the users to enable the 2 step auth

This commit is contained in:
Alejandro Gallardo Escobar 2014-12-11 16:12:27 +01:00
parent d399ccbd1f
commit 33c6789144
2 changed files with 11 additions and 0 deletions

View File

@ -94,6 +94,15 @@ if (enterprise_installed()) {
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">';
html_print_input_hidden ('update_config', 1);
html_print_table ($table);

View File

@ -321,6 +321,8 @@ function config_update_config () {
$error_update[] = __('User');
if (!config_update_value ('rintegria_pass', get_parameter ('rintegria_pass')))
$error_update[] = __('Password');
if (!config_update_value ('double_auth_enabled', get_parameter ('double_auth_enabled')))
$error_update[] = __('Double authentication');
/////////////
break;
case 'perf':