Koha-clms/Koha/Exceptions
Magnus Enger c98c1994ea
Bug 22706: Add plugin hooks for Norwegian national patron database
The main point of this patch is to make it possible to integrate Koha
with the Norwegian national patron database (NNPDB). Code for this was
earlier introduced in Bug 11401 and removed again in Bug 21068.

To test this is mainly a question of spotting regressions, it should
still be possible to set and change a password in all possible ways:
- Setting a password for a new user
- Changing a password in the staff client
- Changing a password in the OPAC
If these work as expected, everything should be OK.

A nice side effect of this work is that it will allow for plugins that
validate passwords. I have created a tiny plugin that enforces PIN
codes of 4 digits. (Yeah, I know, those are the worst passwords, but
some libraries do require them.) It is published here:
https://github.com/Libriotech/koha-plugin-pin
To test this way, install the plugin and try to change the password
of an exsisting user to something that is not a 4 digit PIN. You
should get an error that says "The password was rejected by a plugin".

Signed-off-by: Brendan Gallagher <brendan@bywatersolutions.com>

Updated 2019-10-23:
- Moved the plugin checks to before the call to $self->SUPER::store to
  make sure patrons are not saved if the password fails a plugin check
- Made the plugin checks in set_password respect skip_validation while
  retaining the functionality for NNPDB

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-10-29 12:19:49 +00:00
..
Patron Bug 14570: Add error handling to Koha::Patron::Relationship->store 2019-08-20 16:05:57 +01:00
Account.pm Bug 23321: Add cash register support to paycollect 2019-09-23 11:39:22 +01:00
Authentication.pm Bug 18137: Add useful Koha::Exceptions 2017-09-21 11:27:04 -03:00
Authorization.pm Bug 18137: Add useful Koha::Exceptions 2017-09-21 11:27:04 -03:00
ClubHold.pm Bug 19618: Add api endpoint for club holds 2019-10-01 08:05:58 +01:00
Config.pm Bug 19542: Add a check for ES configuration health 2017-12-11 14:30:42 -03:00
Elasticsearch.pm Bug 19893: Add code review fixes 2018-11-16 11:04:59 +00:00
Exception.pm Bug 21022: (follow-up) Move overloaded full_message method to subclass 2018-07-13 13:25:15 +00:00
Hold.pm Bug 21478: Add Koha::Exceptions::Hold 2019-01-28 11:35:50 +00:00
Ill.pm Bug 7317: Handle missing email addresses gracefuly 2017-11-09 11:42:15 -03:00
Library.pm Bug 18072: Add Koha::Item->can_be_transferred 2018-07-18 17:29:04 +00:00
Metadata.pm Bug 23425: (QA follow-up) Keep it generic 2019-09-23 10:41:58 +01:00
Object.pm Bug 23321: Allow setting of branch default 2019-09-23 11:39:22 +01:00
Password.pm Bug 22706: Add plugin hooks for Norwegian national patron database 2019-10-29 12:19:49 +00:00
Patron.pm Bug 21337: (QA follow-up) Rename exception code 2018-10-26 16:06:57 +00:00
Plugin.pm Bug 21116: Add API routes through plugins 2018-09-14 17:21:14 +00:00
Token.pm Bug 21998: Throw exception on bad pattern 2019-03-22 20:21:44 +00:00