spaces -> tab + added spaces
Signed-off-by: Roland Häder <roland@mxchange.org>
This commit is contained in:
parent
cc83e9d72a
commit
958c24e9f3
|
@ -364,22 +364,22 @@ function settings_post(App $a) {
|
||||||
|
|
||||||
call_hooks('settings_post', $_POST);
|
call_hooks('settings_post', $_POST);
|
||||||
|
|
||||||
if((x($_POST,'password')) || (x($_POST,'confirm'))) {
|
if ((x($_POST,'password')) || (x($_POST,'confirm'))) {
|
||||||
|
|
||||||
$newpass = $_POST['password'];
|
$newpass = $_POST['password'];
|
||||||
$confirm = $_POST['confirm'];
|
$confirm = $_POST['confirm'];
|
||||||
$oldpass = hash('whirlpool', $_POST['opassword']);
|
$oldpass = hash('whirlpool', $_POST['opassword']);
|
||||||
|
|
||||||
$err = false;
|
$err = false;
|
||||||
if($newpass != $confirm ) {
|
if ($newpass != $confirm ) {
|
||||||
notice( t('Passwords do not match. Password unchanged.') . EOL);
|
notice( t('Passwords do not match. Password unchanged.') . EOL);
|
||||||
$err = true;
|
$err = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if((! x($newpass)) || (! x($confirm))) {
|
if ((! x($newpass)) || (! x($confirm))) {
|
||||||
notice( t('Empty passwords are not allowed. Password unchanged.') . EOL);
|
notice( t('Empty passwords are not allowed. Password unchanged.') . EOL);
|
||||||
$err = true;
|
$err = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if the old password was supplied correctly before
|
// check if the old password was supplied correctly before
|
||||||
// changing it to the new value
|
// changing it to the new value
|
||||||
|
|
Loading…
Reference in a new issue