Revision 3e90d18b
Added by Pi Ba over 7 years ago
src/usr/local/www/diag_authentication.php | ||
---|---|---|
82 | 82 |
|
83 | 83 |
$section = new Form_Section('Authentication Test'); |
84 | 84 |
|
85 |
foreach (auth_get_authserver_list() as $auth_server) { |
|
86 |
$serverlist[$auth_server['name']] = $auth_server['name'];
|
|
85 |
foreach (auth_get_authserver_list() as $key => $auth_server) {
|
|
86 |
$serverlist[$key] = $auth_server['name'];
|
|
87 | 87 |
} |
88 | 88 |
|
89 | 89 |
$section->addInput(new Form_Select( |
src/usr/local/www/vpn_ipsec_mobile.php | ||
---|---|---|
442 | 442 |
|
443 | 443 |
$authServers = array(); |
444 | 444 |
|
445 |
foreach (auth_get_authserver_list() as $authServer) { |
|
446 |
$authServers[$authServer['name']] = $authServer['name']; // Value == name
|
|
445 |
foreach (auth_get_authserver_list() as $key => $authServer) {
|
|
446 |
$authServers[$key] = $authServer['name']; // Value == name
|
|
447 | 447 |
} |
448 | 448 |
|
449 | 449 |
$section->addInput(new Form_Select( |
src/usr/local/www/wizards/openvpn_wizard.inc | ||
---|---|---|
71 | 71 |
$found = true; |
72 | 72 |
$opts = array(); |
73 | 73 |
$opts['name'] = $auth['name']; |
74 |
$opts['value'] = $auth['name'];
|
|
74 |
$opts['value'] = $i;
|
|
75 | 75 |
$fields[1]['options']['option'][] = $opts; |
76 | 76 |
} |
77 | 77 |
if ($found == false) { |
... | ... | |
133 | 133 |
$found = true; |
134 | 134 |
$opts = array(); |
135 | 135 |
$opts['name'] = $auth['name']; |
136 |
$opts['value'] = $auth['name'];
|
|
136 |
$opts['value'] = $i;
|
|
137 | 137 |
$fields[1]['options']['option'][] = $opts; |
138 | 138 |
} |
139 | 139 |
if ($found == false) |
Also available in: Unified diff
local authentication option, use key value instead of translated name.