From 11c59ef108796f0ce50a8fa186a45869abc2575c Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 23 Sep 2024 12:09:45 +0000 Subject: [PATCH] Fix --- php/classes/AmdaClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/classes/AmdaClient.php b/php/classes/AmdaClient.php index 1db67da..6cee3a9 100644 --- a/php/classes/AmdaClient.php +++ b/php/classes/AmdaClient.php @@ -249,7 +249,7 @@ class AmdaClient { } public function resetUserPwd($login, $crt_pwd, $new_pwd) { - if ($login == "impex" || str_starts_with($login, "guest")) { + if ($login == "impex" || (strpos($login, 'guest') === 0)) { return array('success' => false, 'message' => "You are not authorised to change this password"); } try { -- libgit2 0.21.2