From aabe323cb2f5cd3e812cfd8856c1eeaf9846a12c Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Tue, 19 Sep 2017 08:21:48 +0200 Subject: [PATCH] Fix: password changing by admin --- utils/changepass.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/changepass.php b/utils/changepass.php index 376eb78..76acfc2 100644 --- a/utils/changepass.php +++ b/utils/changepass.php @@ -35,7 +35,7 @@ if ($auth->isAdmin() && !empty($login)) { // different user, only admin $passUser = new uUser($login); - if (!$passUser->valid) { + if (!$passUser->isValid) { uUtils::exitWithError("User unknown"); } } else {