summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/diag_authentication.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/usr/local/www/diag_authentication.php')
-rw-r--r--src/usr/local/www/diag_authentication.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/usr/local/www/diag_authentication.php b/src/usr/local/www/diag_authentication.php
index 85fd3bb..4e53a56 100644
--- a/src/usr/local/www/diag_authentication.php
+++ b/src/usr/local/www/diag_authentication.php
@@ -96,7 +96,14 @@ if ($_POST) {
$input_errors[] = gettext("Authentication failed.");
}
}
+} else {
+ if (isset($config['system']['webgui']['authmode'])) {
+ $pconfig['authmode'] = $config['system']['webgui']['authmode'];
+ } else {
+ $pconfig['authmode'] = "Local Database";
+ }
}
+
$pgtitle = array(gettext("Diagnostics"), gettext("Authentication"));
$shortcut_section = "authentication";
include("head.inc");
@@ -118,12 +125,6 @@ $section = new Form_Section('Authentication Test');
foreach (auth_get_authserver_list() as $auth_server)
$serverlist[$auth_server['name']] = $auth_server['name'];
-if (isset($config['system']['webgui']['authmode'])) {
- $pconfig['authmode'] = &$config['system']['webgui']['authmode'];
-}
-else {
- $pconfig['authmode'] = "Local Database";
-}
$section->addInput(new Form_Select(
'authmode',
'Authentication Server',
OpenPOWER on IntegriCloud