Improve error message when password changed by non-admin

This commit is contained in:
Bartek Fabiszewski 2017-09-19 08:37:54 +02:00
parent 396566e0fe
commit 203fc138c9

View File

@ -38,6 +38,8 @@
if (!$passUser->isValid) {
uUtils::exitWithError("User unknown");
}
} else if (!empty($login)) {
uUtils::exitWithError("Unauthorized");
} else {
// current user
$passUser = $auth->user;