Skip to content

Commit

Permalink
Update checking if old PIN/Password was valid during password reset p…
Browse files Browse the repository at this point in the history
…rocess
  • Loading branch information
mdnoble73 committed May 6, 2024
1 parent 3c69259 commit 0bdbf63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/web/Drivers/Polaris.php
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ function updatePatronInfo($patron, $canUpdateContactInfo, $fromMasquerade): arra
}

function updatePin(User $patron, ?string $oldPin, string $newPin) {
if ($patron->cat_password != $oldPin) {
if ($patron->ils_password != $oldPin && $patron->cat_password != $oldPin) {
return [
'success' => false,
'message' => "The old PIN provided is incorrect.",
Expand All @@ -1694,6 +1694,7 @@ function updatePin(User $patron, ?string $oldPin, string $newPin) {
$result['success'] = true;
$result['message'] = 'Your password was updated successfully.';
$patron->cat_password = $newPin;
$patron->ils_password = $newPin;
$patron->update();
} else {
$result['message'] = "Error updating your password. (Error {$jsonResponse->PAPIErrorCode}).";
Expand Down
1 change: 1 addition & 0 deletions code/web/release_notes/24.05.00.MD
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@

### Polaris Updates
- Add additional checking for if an item has been moved between bibs when determining which bibs need to be updated. (Ticket 124477) (*MDN*)
- Update checking if old PIN/Password was valid during password reset process. (Ticket 131557) (*MDN*)

### Sierra Updates
- When prompting for an item to place a hold on. Treat item statuses of - with a due date as checked out. (Tickets 117611, 122886, 129418) (*MDN*)
Expand Down

0 comments on commit 0bdbf63

Please sign in to comment.