allow leading/trailing whitespace in passwords
This commit is contained in:
parent
006ca54f92
commit
dcaadada35
1 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ function settings_post(&$a) {
|
||||||
}
|
}
|
||||||
if((x($_POST,'npassword')) || (x($_POST,'confirm'))) {
|
if((x($_POST,'npassword')) || (x($_POST,'confirm'))) {
|
||||||
|
|
||||||
$newpass = trim($_POST['npassword']);
|
$newpass = $_POST['npassword'];
|
||||||
$confirm = trim($_POST['confirm']);
|
$confirm = $_POST['confirm'];
|
||||||
|
|
||||||
$err = false;
|
$err = false;
|
||||||
if($newpass != $confirm ) {
|
if($newpass != $confirm ) {
|
||||||
|
|
Loading…
Reference in a new issue