rename new password field so form filling browsers don't always populate it
This commit is contained in:
parent
cac8aa7a69
commit
f7c56106e7
2 changed files with 3 additions and 3 deletions
|
@ -24,9 +24,9 @@ function settings_post(&$a) {
|
||||||
notice( t('Permission denied.') . EOL);
|
notice( t('Permission denied.') . EOL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if((x($_POST,'password')) || (x($_POST,'confirm'))) {
|
if((x($_POST,'npassword')) || (x($_POST,'confirm'))) {
|
||||||
|
|
||||||
$newpass = trim($_POST['password']);
|
$newpass = trim($_POST['npassword']);
|
||||||
$confirm = trim($_POST['confirm']);
|
$confirm = trim($_POST['confirm']);
|
||||||
|
|
||||||
$err = false;
|
$err = false;
|
||||||
|
|
|
@ -74,7 +74,7 @@ $profile_in_net_dir
|
||||||
Leave password fields blank unless changing
|
Leave password fields blank unless changing
|
||||||
</p>
|
</p>
|
||||||
<label id="settings-password-label" for="settings-password" >New Password: </label>
|
<label id="settings-password-label" for="settings-password" >New Password: </label>
|
||||||
<input type="password" id="settings-password" name="password" ></input>
|
<input type="password" id="settings-password" name="npassword" ></input>
|
||||||
</div>
|
</div>
|
||||||
<div id="settings-password-end" ></div>
|
<div id="settings-password-end" ></div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue