Improve error message when password changed by non-admin
This commit is contained in:
parent
396566e0fe
commit
203fc138c9
@ -38,6 +38,8 @@
|
|||||||
if (!$passUser->isValid) {
|
if (!$passUser->isValid) {
|
||||||
uUtils::exitWithError("User unknown");
|
uUtils::exitWithError("User unknown");
|
||||||
}
|
}
|
||||||
|
} else if (!empty($login)) {
|
||||||
|
uUtils::exitWithError("Unauthorized");
|
||||||
} else {
|
} else {
|
||||||
// current user
|
// current user
|
||||||
$passUser = $auth->user;
|
$passUser = $auth->user;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user