diff options
Diffstat (limited to 'src/usr/local/www/vpn_l2tp_users_edit.php')
-rw-r--r-- | src/usr/local/www/vpn_l2tp_users_edit.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/usr/local/www/vpn_l2tp_users_edit.php b/src/usr/local/www/vpn_l2tp_users_edit.php index 2db2c16..d3d7c28 100644 --- a/src/usr/local/www/vpn_l2tp_users_edit.php +++ b/src/usr/local/www/vpn_l2tp_users_edit.php @@ -93,6 +93,9 @@ if (isset($_POST['id']) && is_numericint($_POST['id'])) { if (isset($id) && $a_secret[$id]) { $pconfig['usernamefld'] = $a_secret[$id]['name']; $pconfig['ip'] = $a_secret[$id]['ip']; + $pwd_required = ""; +} else { + $pwd_required = "*"; } if ($_POST) { @@ -178,14 +181,14 @@ $section = new Form_Section("User"); $section->addInput(new Form_Input( 'usernamefld', - 'Username', + '*Username', 'text', $pconfig['usernamefld'] )); $pwd = new Form_Input( 'passwordfld', - 'Password', + $pwd_required . 'Password', 'text', $pconfig['passwordfld'] ); |