diff --git a/module/VuFind/src/VuFind/ILS/Driver/Folio.php b/module/VuFind/src/VuFind/ILS/Driver/Folio.php index 24671303de9ab627c17f9e5ddf6cbcf7de645dfa..5dae53d85eaf23f4f85c9fa17ede2382ecd2f78b 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/Folio.php +++ b/module/VuFind/src/VuFind/ILS/Driver/Folio.php @@ -466,14 +466,14 @@ class Folio extends AbstractAPI implements throw new ILSException("User not found"); } $profile = $json->users[0]; - $credentials = [ + $credentials = [ 'userId' => $profile->id, 'username' => $username, 'password' => $password, ]; - // Get token - try { - $response = $this->makeRequest( + // Get token + try { + $response = $this->makeRequest( 'POST', '/authn/login', json_encode($credentials) @@ -481,11 +481,11 @@ class Folio extends AbstractAPI implements // Replace admin with user as tenant $this->token = $response->getHeaders()->get('X-Okapi-Token') ->getFieldValue(); - $this->debug( + $this->debug( 'User logged in. User: ' . $username . '.' . ' Token: ' . substr($this->token, 0, 30) . '...' ); - return [ + return [ 'id' => $profile->id, 'username' => $username, 'cat_username' => $username,