The Gitlab instance will be restarted on Monday April 28th at 2AM. There will be a short interruption of service.

Skip to content
Snippets Groups Projects
Commit 425b69c6 authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Fix whitespace.

parent c2ff51b3
No related merge requests found
......@@ -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,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment