Commit 89c689b7 authored by Franco Fichtner's avatar Franco Fichtner

openvpn: fix auth server translation for #467

parent 9b8db233
...@@ -776,17 +776,14 @@ function tuntap_change() { ...@@ -776,17 +776,14 @@ function tuntap_change() {
$authmodes = array(); $authmodes = array();
} }
$auth_servers = auth_get_authserver_list(); $auth_servers = auth_get_authserver_list();
foreach ($auth_servers as $auth_server) : foreach ($auth_servers as $auth_key => $auth_server) :
$selected = ""; $selected = "";
if (in_array($auth_server['name'], $authmodes)) { if (in_array($auth_server['name'], $authmodes)) {
$selected = "selected=\"selected\""; $selected = "selected=\"selected\"";
} }
?> ?>
<option value="<?=htmlspecialchars($auth_server['name']); <option value="<?=htmlspecialchars($auth_key); ?>" <?=$selected; ?>><?=htmlspecialchars($auth_server['name']);?></option>
?>" <?=$selected; <?php endforeach; ?>
?>><?=htmlspecialchars($auth_server['name']);?></option>
<?php
endforeach; ?>
</select> </select>
</td> </td>
</tr> </tr>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment