diff options
author | Renato Botelho <renato@netgate.com> | 2015-11-19 07:13:30 -0200 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-11-19 07:13:30 -0200 |
commit | 86025b0ecb3b30b5c408e671356c33f433d590dc (patch) | |
tree | b441f9ed47540b929d1eb2cd6685181c79ef240b /usr/local | |
parent | c670525f0455c4cd7bf7486a12688441339cb6d3 (diff) | |
parent | 08d6f8ff2a381716492aa8fe0c34c1d593d15f8c (diff) | |
download | pfsense-86025b0ecb3b30b5c408e671356c33f433d590dc.zip pfsense-86025b0ecb3b30b5c408e671356c33f433d590dc.tar.gz |
Merge pull request #2065 from phil-davis/patch-6
Diffstat (limited to 'usr/local')
-rw-r--r-- | usr/local/www/diag_authentication.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/local/www/diag_authentication.php b/usr/local/www/diag_authentication.php index 24d567e..a4c9290 100644 --- a/usr/local/www/diag_authentication.php +++ b/usr/local/www/diag_authentication.php @@ -66,6 +66,14 @@ if ($_POST) { $input_errors[] = gettext("Authentication failed."); } } +} else { + // Choose a reasonable initial default. + 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"; |