summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2014-11-13 16:26:41 +0100
committerErmal <eri@pfsense.org>2014-11-13 16:27:06 +0100
commitefca0d9ef9f001613a4d885ad5f4c589354f5334 (patch)
tree5efd35db73625a3290e5802ff23722d316f088de
parent9b7f6b7b8a3e1cd1adeb6471a11d561d6d9436d1 (diff)
downloadpfsense-efca0d9ef9f001613a4d885ad5f4c589354f5334.zip
pfsense-efca0d9ef9f001613a4d885ad5f4c589354f5334.tar.gz
Do not show the user/pass for pre shared key on Openvpn since its not-supported.
-rw-r--r--usr/local/www/vpn_openvpn_client.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/usr/local/www/vpn_openvpn_client.php b/usr/local/www/vpn_openvpn_client.php
index 09c4fb5..b3e9c9f 100644
--- a/usr/local/www/vpn_openvpn_client.php
+++ b/usr/local/www/vpn_openvpn_client.php
@@ -356,12 +356,16 @@ function mode_change() {
document.getElementById("tls").style.display="";
document.getElementById("tls_ca").style.display="";
document.getElementById("tls_cert").style.display="";
+ document.getElementById("userpass").style.display="";
+ document.getElementById("userpassheader").style.display="";
document.getElementById("psk").style.display="none";
break;
case "p2p_shared_key":
document.getElementById("tls").style.display="none";
document.getElementById("tls_ca").style.display="none";
document.getElementById("tls_cert").style.display="none";
+ document.getElementById("userpass").style.display="none";
+ document.getElementById("userpassheader").style.display="none";
document.getElementById("psk").style.display="";
break;
}
@@ -666,10 +670,10 @@ if ($savemsg)
<tr>
<td colspan="2" class="list" height="12"></td>
</tr>
- <tr>
+ <tr id='userpassheader'>
<td colspan="2" valign="top" class="listtopic"><?=gettext("User Authentication Settings"); ?></td>
</tr>
- <tr>
+ <tr id='userpass'>
<td width="22%" valign="top" class="vncell"><?=gettext("User name/pass"); ?></td>
<td width="78%" class="vtable">
<?=gettext("Leave empty when no user name and password are needed."); ?>
OpenPOWER on IntegriCloud