diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-12-12 09:17:25 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-12-12 09:17:35 -0200 |
commit | 9b8f26cfdf3a9829585c1e97b435407561e2766d (patch) | |
tree | f2dae5305759b0686c2186fc0af5331b7f8cc5c0 /usr/local/www/vpn_l2tp_users_edit.php | |
parent | 946e55bd3dafa751d30e5bb1aa6884699c6b853b (diff) | |
download | pfsense-9b8f26cfdf3a9829585c1e97b435407561e2766d.zip pfsense-9b8f26cfdf3a9829585c1e97b435407561e2766d.tar.gz |
Fix password confirmation name to make style working as expected. Fixes #3992
Diffstat (limited to 'usr/local/www/vpn_l2tp_users_edit.php')
-rw-r--r-- | usr/local/www/vpn_l2tp_users_edit.php | 4 |
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" /> (<?=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> |