Skip to content

Commit

Permalink
Added an option to allow the users to enable the 2 step auth
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgallardo committed Dec 11, 2014
1 parent 8a294c4 commit 77e8245
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pandora_console/godmode/setup/setup_auth.php
Expand Up @@ -94,6 +94,15 @@
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);
Expand Down
2 changes: 2 additions & 0 deletions pandora_console/include/functions_config.php
Expand Up @@ -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':
Expand Down

0 comments on commit 77e8245

Please sign in to comment.