Skip to content
Snippets Groups Projects
Commit 57716665 authored by Demian Katz's avatar Demian Katz
Browse files

Merge branch 'release-2.3'

parents 52b3d726 17557624
No related merge requests found
......@@ -1089,18 +1089,28 @@ class Symphony extends AbstractBase
'cat_password' => $password,
);
$resp = $this->makeRequest(
'patron',
'lookupMyAccountInfo',
array(
'includePatronInfo' => 'true',
'includePatronAddressInfo' => 'true'
),
array(
'login' => $username,
'password' => $password,
)
);
try {
$resp = $this->makeRequest(
'patron',
'lookupMyAccountInfo',
array(
'includePatronInfo' => 'true',
'includePatronAddressInfo' => 'true'
),
array(
'login' => $username,
'password' => $password,
)
);
} catch (SoapFault $e) {
$unableToLogin = 'ns0:com.sirsidynix.symws.service.'
. 'exceptions.SecurityServiceException.unableToLogin';
if ($e->faultcode == $unableToLogin) {
return null;
} else {
throw $e;
}
}
$patron['id'] = $resp->patronInfo->$usernameField;
$patron['library'] = $resp->patronInfo->patronLibraryID;
......
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