diff --git a/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php b/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php index ba800766b89..274a16a8760 100644 --- a/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php +++ b/module/VuFind/src/VuFind/ILS/Driver/SierraRest.php @@ -1725,17 +1725,7 @@ public function changePassword($details) 'success' => false, 'status' => 'authentication_error_invalid', ]; } - - if ($this->config['Authentication']['digits_only'] ?? false) { - $newPIN = preg_replace('/[^\d]/', '', trim($details['newPassword'])); - if (strlen($newPIN) != 4) { - return [ - 'success' => false, 'status' => 'password_error_invalid', - ]; - } - } else { - $newPIN = trim($details['newPassword']); - } + $newPIN = trim($details['newPassword']); $request = ['pin' => $newPIN]; $result = $this->makeRequest(