Fix wrong condition

Grmbl
pull/4001/head
Hypolite Petovan 2017-12-03 08:37:01 -05:00
rodzic 3359f3f5c7
commit 1eb8355ac8
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -383,8 +383,8 @@ function settings_post(App $a) {
$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
if (!User::authenticate(intval(local_user()), $_POST['opassword'])) {
notice(t('Wrong password.') . EOL);
$err = true;
}