Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences
Nick Clemens e941dfdc99 Bug 29925: Add a password reset page for expired passwords
This patch adds a new page opac-reset-password where a user cna enter their login
(userid or carndumber), current password, and new password.

If the user has a password expiration date and the current password is correct and
the new passwords match and meet requirements their password will be updated and the
expiration date reset

A patron whose password does not expire will be reidrected to login to change their password

To test:
 1 - Apply patch, updatedatabase, enable new syspref EnableExpiredPasswordReset
 2 - Set 'Password expiration' for a patron category
     Home->Administration->Patron categories->Edit
 3 - Create a new patron in this category with a userid/password set, and an email
 4 - Update the patron with an expiration to be expired
     UPDATE borrowers SET password_expiration='2022-01-01' WHERE borrowernumber=51;
 5 - Give the borrower catalogue permission
 6 - Attempt to log in to Straff interface
 7 - Confirm you are signed out and notified that password must be reset
 8 - Click 'Reset your password' link
 9 - You should see the reset password page with fields for: login, current password, new password, conmfirm password
10 - enter invalid/incomplete credentials
11 - Confirm you are notified of invlaid credentials
12 - Fill in all fields, but enter current password as new password
13 - Confirm you are notified of no change
14 - Set minimum password length / strong password requirement for category
15 - Confirm you receive error if new password too short or not secure
16 - Enter a valid new password and submit and confirm update is successful
17 - Confirm you have buttons to go to OPAC or Staff and that both work
18 - Confirm you cna log in (i.e. expiration has been reset)
19 - Expire the users password
20 - Remove catalogue permission
21 - Reset password again and confirm only OPAC link

Signed-off-by: Bob Bennhoff <bbennhoff@clicweb.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
2022-05-06 10:33:09 -10:00
..
accounting.pref Bug 30563: (QA follow-up) Fix system preference values and add link to description 2022-05-06 10:33:09 -10:00
acquisitions.pref Bug 30135: (follow-up) Rephrase system preference description to use collection 2022-04-13 15:55:39 +02:00
admin.pref Bug 20076: (RM follow-up) Fix system preference boolean logic 2022-01-13 16:37:33 -10:00
authorities.pref
cataloguing.pref Bug 29286: Typo: Librarien will need the manage_auth_values subpermission. 2021-10-26 16:46:03 +02:00
circulation.pref Bug 30108: Preference description 2022-05-02 11:22:58 -10:00
enhanced_content.pref Bug 21225: (QA follow-up) Update pref description of SyndeticsCoverImages 2022-04-08 15:49:16 +02:00
i18n_l10n.pref
local_use.pref
logs.pref Bug 19532: (follow-up) Fix calls, tests, syspref settings, checks 2022-03-14 22:45:51 -10:00
opac.pref Bug 14242: Use ISBN-field to automatically fill out purchase suggestions 2022-05-03 11:19:50 -10:00
patrons.pref Bug 29925: Add a password reset page for expired passwords 2022-05-06 10:33:09 -10:00
searching.pref Bug 17018: Split AdvancedSearchTypes for staff and OPAC 2022-04-12 17:13:02 +02:00
serials.pref
staff_interface.pref Bug 28786: Add new syspref TwoFactorAuthentication 2022-04-20 20:43:15 -10:00
tools.pref Bug 29648: (QA follow-up) Remove NumSavedReports from .pref file 2022-04-27 11:20:45 -10:00
web_services.pref