Fix wrong condition
Grmbl
This commit is contained in:
parent
3359f3f5c7
commit
1eb8355ac8
|
@ -383,8 +383,8 @@ function settings_post(App $a) {
|
||||||
$err = true;
|
$err = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (User::authenticate(intval(local_user()), $_POST['opassword'])) {
|
|
||||||
// check if the old password was supplied correctly before changing it to the new value
|
// check if the old password was supplied correctly before changing it to the new value
|
||||||
|
if (!User::authenticate(intval(local_user()), $_POST['opassword'])) {
|
||||||
notice(t('Wrong password.') . EOL);
|
notice(t('Wrong password.') . EOL);
|
||||||
$err = true;
|
$err = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue