Skip to content
Snippets Groups Projects
Commit 3fefc008 authored by Robert Lange's avatar Robert Lange Committed by Dorian Merz
Browse files

refs #20841 [finc] override PAIA changePassword in FincLibero

parent 717db3ce
No related merge requests found
...@@ -408,6 +408,28 @@ class FincLibero extends FincILS implements TranslatorAwareInterface ...@@ -408,6 +408,28 @@ class FincLibero extends FincILS implements TranslatorAwareInterface
} }
} }
/**
* FincLibero specific override: we need to manually update the cat_password in
* the session as we do not save passwords in the database and therefore the
* ILSAuthenticator will use the session data instead.
*
* @param array $details Array with patron information, newPassword and
* oldPassword.
*
* @return array An array with patron information.
*/
public function changePassword($details)
{
$retval = parent::changePassword($details);
if ($retval == ['success' => true, 'status' => 'Successfully changed']) {
$session = $this->getSession();
$session->cat_password = $details['newPassword'];
}
return $retval;
}
/** /**
* PAIA helper function to map session data to return value of patronLogin() * PAIA helper function to map session data to return value of patronLogin()
* *
......
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