Browse Source

allow leading/trailing whitespace in passwords

pull/1/head
Mike Macgirvin 11 years ago
parent
commit
dcaadada35
  1. 4
      mod/settings.php

4
mod/settings.php

@ -21,8 +21,8 @@ function settings_post(&$a) {
}
if((x($_POST,'npassword')) || (x($_POST,'confirm'))) {
$newpass = trim($_POST['npassword']);
$confirm = trim($_POST['confirm']);
$newpass = $_POST['npassword'];
$confirm = $_POST['confirm'];
$err = false;
if($newpass != $confirm ) {

Loading…
Cancel
Save