Skip to content
Snippets Groups Projects
Commit db9d6d22 authored by Sebastian Kehr's avatar Sebastian Kehr :rowboat_tone2: Committed by Frank Morgner
Browse files

refs #11902

* fixes error message at change password form
* catch auth exception and return status array instead
parent 83960e2e
No related merge requests found
......@@ -740,6 +740,7 @@ errorcode_empty_member_code = "Es wurde keine Benutzernummer übergeben"
errorcode_empty_password = "Es wurde kein Passwort übergeben"
errorcode_member_not_found = "Die Benutzernummer exisitiert nicht"
errorcode_password_validation_error = "Das übergebene Password ist nicht korrekt"
errorcode_old_password_validation_error = "Die Kombination aus Benutzernummer und Kennwort ist nicht gültig. Bitte überprüfen Sie Ihre Eingabe."
errorcode_empty_req_param_error = "Um das Formular erfolgreich zu senden, müssen alle erforderlichen Felder ausgefüllt sein"
exclude_newspapers = "Ohne Zeitungsartikel"
export_download = "Datei herunterladen"
......
......@@ -392,7 +392,9 @@ errorcode_empty_member_code = "Some data was missing. No member number was submi
errorcode_empty_password = "Some data was missing. No password was submitted"
errorcode_member_not_found = "The member number does not exist"
errorcode_password_validation_error = "Your passed password is not correct"
errorcode_old_password_validation_error = "Invalid combination of username and password, please check your entries."
errorcode_empty_req_param_error = "All required fields have to be filled to submit successfully the form"
exclude_newspapers = "Exclude Newspaper Articles"
export_download = "Download File"
export_exporting = "Creating Export File"
......
......@@ -206,6 +206,11 @@ class PAIA extends \VuFind\ILS\Driver\PAIA
$array_response = $this->paiaPostAsArray(
'auth/change', $post_data
);
} catch (AuthException $e) {
return [
'success' => false,
'status' => 'errorcode_old_password_validation_error'
];
} catch (\Exception $e) {
$this->debug($e->getMessage());
return [
......
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