Browse Source

spaces -> tab + added spaces

Signed-off-by: Roland Häder <roland@mxchange.org>
pull/3112/head
Roland Häder 6 years ago committed by Roland Haeder
parent
commit
958c24e9f3
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78
  1. 8
      mod/settings.php

8
mod/settings.php

@ -364,22 +364,22 @@ function settings_post(App $a) {
call_hooks('settings_post', $_POST);
if((x($_POST,'password')) || (x($_POST,'confirm'))) {
if ((x($_POST,'password')) || (x($_POST,'confirm'))) {
$newpass = $_POST['password'];
$confirm = $_POST['confirm'];
$oldpass = hash('whirlpool', $_POST['opassword']);
$err = false;
if($newpass != $confirm ) {
if ($newpass != $confirm ) {
notice( t('Passwords do not match. Password unchanged.') . EOL);
$err = true;
}
if((! x($newpass)) || (! x($confirm))) {
if ((! x($newpass)) || (! x($confirm))) {
notice( t('Empty passwords are not allowed. Password unchanged.') . EOL);
$err = true;
}
}
// check if the old password was supplied correctly before
// changing it to the new value

Loading…
Cancel
Save