Commit 11c59ef108796f0ce50a8fa186a45869abc2575c

Authored by Benjamin Renard
1 parent 0df0a6ec

Fix

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
php/classes/AmdaClient.php
... ... @@ -249,7 +249,7 @@ class AmdaClient {
249 249 }
250 250  
251 251 public function resetUserPwd($login, $crt_pwd, $new_pwd) {
252   - if ($login == "impex" || str_starts_with($login, "guest")) {
  252 + if ($login == "impex" || (strpos($login, 'guest') === 0)) {
253 253 return array('success' => false, 'message' => "You are not authorised to change this password");
254 254 }
255 255 try {
... ...