diff --git a/src/etc/inc/openvpn_wizard.inc b/src/etc/inc/openvpn_wizard.inc index 5745286a5..d86817b12 100644 --- a/src/etc/inc/openvpn_wizard.inc +++ b/src/etc/inc/openvpn_wizard.inc @@ -61,13 +61,14 @@ function step2_stepbeforeformdisplay() { $found = false; $authlist = auth_get_authserver_list(); $fields[1]['options']['option'] = array(); - foreach ($authlist as $i => $auth) { - if ($auth['type'] != "ldap") + foreach ($authlist as $key => $auth) { + if ($auth['type'] != 'ldap') { continue; + } $found = true; $opts = array(); $opts['name'] = $auth['name']; - $opts['value'] = $auth['name']; + $opts['value'] = $key; $fields[1]['options']['option'][] = $opts; } if ($found == false) { @@ -123,13 +124,14 @@ function step4_stepbeforeformdisplay() { $found = false; $authlist = auth_get_authserver_list(); $fields[1]['options']['option'] = array(); - foreach ($authlist as $i => $auth) { - if ($auth['type'] != "radius") + foreach ($authlist as $key => $auth) { + if ($auth['type'] != 'radius') { continue; + } $found = true; $opts = array(); $opts['name'] = $auth['name']; - $opts['value'] = $auth['name']; + $opts['value'] = $key; $fields[1]['options']['option'][] = $opts; } if ($found == false) diff --git a/src/www/system_usermanager_settings.php b/src/www/system_usermanager_settings.php index 92fedde7f..463427662 100644 --- a/src/www/system_usermanager_settings.php +++ b/src/www/system_usermanager_settings.php @@ -136,21 +136,17 @@ if ($save_and_test) { diff --git a/src/www/vpn_ipsec_mobile.php b/src/www/vpn_ipsec_mobile.php index 89fae21ad..b14498426 100644 --- a/src/www/vpn_ipsec_mobile.php +++ b/src/www/vpn_ipsec_mobile.php @@ -393,11 +393,9 @@ if (isset($input_errors) && count($input_errors) > 0) { - - +foreach ($auth_servers as $auth_key => $auth_server) : ?> + +