Example #1
0
 /**
  * Change Password
  *
  * Attempts to change patron password (PIN code)
  *
  * @param array $details An array of patron id and old and new password
  *
  * @return mixed An array of data on the request including
  * whether or not it was successful and a system message (if available)
  */
 public function changePassword($details)
 {
     // Remove old credentials from the cache regardless of whether the change
     // was successful
     $cacheKey = 'patron|' . $details['patron']['cat_username'];
     $item = $this->putCachedData($cacheKey, null);
     return parent::changePassword($details);
 }