summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-12-12 09:17:25 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-12-12 09:17:25 -0200
commit2e65babb16b604752afc6b5f948851cb881ce9af (patch)
treec7a694c379a02b010c32fc89c3d0dcbb35c0a794 /usr/local
parenta516c81efec0f8bd6568c59264dd020e81462922 (diff)
downloadpfsense-2e65babb16b604752afc6b5f948851cb881ce9af.zip
pfsense-2e65babb16b604752afc6b5f948851cb881ce9af.tar.gz
Fix password confirmation name to make style working as expected. Fixes #3992
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/vpn_l2tp_users_edit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/local/www/vpn_l2tp_users_edit.php b/usr/local/www/vpn_l2tp_users_edit.php
index 7e362c4..2c5d754 100644
--- a/usr/local/www/vpn_l2tp_users_edit.php
+++ b/usr/local/www/vpn_l2tp_users_edit.php
@@ -94,7 +94,7 @@ if ($_POST) {
if (preg_match("/[^a-zA-Z0-9\.\-_]/", $_POST['passwordfld']))
$input_errors[] = gettext("The password contains invalid characters.");
- if (($_POST['passwordfld']) && ($_POST['passwordfld'] != $_POST['password2'])) {
+ if (($_POST['passwordfld']) && ($_POST['passwordfld'] != $_POST['passwordfld2'])) {
$input_errors[] = gettext("The passwords do not match.");
}
if (($_POST['ip'] && !is_ipaddr($_POST['ip']))) {
@@ -165,7 +165,7 @@ include("head.inc");
<td width="22%" valign="top" class="vncellreq"><?=gettext("Password");?></td>
<td width="78%" class="vtable">
<?=$mandfldhtml;?><input name="passwordfld" type="password" class="formfld pwd" id="passwordfld" size="20" />
- <br /><?=$mandfldhtml;?><input name="password2" type="password" class="formfld pwd" id="password2" size="20" />
+ <br /><?=$mandfldhtml;?><input name="passwordfld2" type="password" class="formfld pwd" id="passwordfld2" size="20" />
&nbsp;(<?=gettext("confirmation");?>)<?php if (isset($id) && $a_secret[$id]): ?><br />
<span class="vexpl"><?=gettext("If you want to change the users password, enter it here twice.");?></span>
<?php endif; ?></td>
OpenPOWER on IntegriCloud