diff --git a/module/finc/src/finc/ILS/Driver/FincILS.php b/module/finc/src/finc/ILS/Driver/FincILS.php index 2cf2f55aa632beddbf05cab2ce3e5acdc531da03..4e83aee5febf19e5a9935e14c84abb9fd6479703 100644 --- a/module/finc/src/finc/ILS/Driver/FincILS.php +++ b/module/finc/src/finc/ILS/Driver/FincILS.php @@ -966,6 +966,26 @@ class FincILS extends PAIA implements LoggerAwareInterface } } + /** + * Refresh Login + * + * Refresh by removing time to expire and constraint authenticating via + * paiaLogin by patronLogin. + * + * @param string $username The patron's username + * @param string $password The patron's login password + * + * @return mixed Associative array of patron info on successful login, + * null on unsuccessful login. + * @access public + */ + public function refreshLogin($username, $password) + { + $session = $this->getSession(); + $session->expires = 0; + return $this->patronLogin($username, $password); + } + /** * PAIA helper function to map session data to return value of patronLogin() * diff --git a/module/finc/src/finc/ILS/Driver/LiberoDingTrait.php b/module/finc/src/finc/ILS/Driver/LiberoDingTrait.php index e3264e0d4f919314bb373498dbdc889c45f27fb8..82e1e38a8fd9d74d869b2495fe721a03ca0d8526 100644 --- a/module/finc/src/finc/ILS/Driver/LiberoDingTrait.php +++ b/module/finc/src/finc/ILS/Driver/LiberoDingTrait.php @@ -185,6 +185,8 @@ trait LiberoDingTrait ); return false; } + // reload PAIA session by paia login again + $this->refreshLogin($patron['cat_username'], $patron['cat_password']); return $this->_getLiberoDingResultBool($result); }