Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Jonathan Druart 558a809144 Bug 18298: Enforce password complexity
This patchset prevents users to enter too leak password, controlled by
a new syspref RequireStrongPassword. If set the staff and patrons will have
to enter a strong password.
The strongness cannot be modified, it has been arbitrarily set (by the
author of this enhancement) to at least 1 lowercase, 1 uppercase and 1
digit. This can be inforce by increasing the value of the existing
minPasswordLength pref.

I decided to turn this feature on, it cannot hurt! For existing installs
it will have to be turned on manually.

Writing these patches I found a lot of inconsistencies all around the
password checks and decided to refactor everything to make things
consistent and more robust.
Now the password validity is check at only one place (subroutine
covered by tests).

Test plan:
We have several places where a password can be change/created:
a. Editing a patron (members/memberentry.pl)
b. Changing the password of a patron (members/member-password.pl)
c. Changing your own password at the opac (opac/opac-passwd.pl).
OpacPasswordChange needs to be set
d. Reseting your own password at the opac
(opac/opac-password-recovery.pl). OpacResetPassword needs to be set,
see "Forgot your password?" link when you are not logged in
e. Self registration feature, PatronSelfRegistration needs to be set.

You will also need to add 'password' to PatronSelfRegistrationBorrowerMandatoryField.

Note that '****' is considered by Koha internally that the password is
not changed (existing behavior).

To fully test this patch you will need to test the different
combinations of RequireStrongPassword and minPasswordLength.

Signed-off-by: Marc Véron <veron@veron.ch>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2017-10-16 09:44:32 -03:00
..
acqui Bug 19083: Fix 'show all details' link on closed basket detail 2017-10-13 13:57:56 -03:00
admin Bug 18298: Enforce password complexity 2017-10-16 09:44:32 -03:00
authorities Bug 18422 - Add Select2 to authority editor 2017-09-29 16:49:48 -03:00
basket
batch
catalogue Bug 18916: Add pagination to top of search results in staff client 2017-10-09 16:15:49 -03:00
cataloguing Bug 19413: (follow-up) Changed fieldset id value 2017-10-13 13:58:08 -03:00
circ Bug 19438: Fix sorting by date due in overdues.pl 2017-10-13 13:58:04 -03:00
clubs Bug 19215: Fixing typo in URL for patron clubs 2017-09-06 12:55:23 -03:00
common
course_reserves Bug 19228: Trigger confirm delete when removing item from course 2017-09-07 13:56:38 -03:00
errors
help Bug 19255: QA Followup - Fix tabs for spaces 2017-10-09 16:15:50 -03:00
installer Bug 18629: (followup) Plain text "Continue..." instead of BLOCK 2017-08-30 16:43:34 -03:00
labels Bug 19050 - XSS Flaws in Quick spine label creator 2017-08-29 12:00:37 -03:00
members Bug 14039: Add the title to all places 2017-10-09 16:15:50 -03:00
offline_circ
onboarding Bug 18649: Translatability: Get rid of tt directive in translation for admin/categories.tt and onboardingstep2.tt 2017-08-30 16:43:35 -03:00
patron_lists Bug 18871: Make patron list name a link to view contents of list 2017-08-30 16:51:21 -03:00
patroncards Bug 18528: Patron card creator template: switch form fields for card height and card width 2017-10-09 16:15:52 -03:00
plugins Bug 19173: Add opac payment and marc conversion plugins to the pulldown filter list 2017-09-19 14:15:52 -03:00
reports Bug 19054 - XSS Flaws in Report - Top Most-circulated items 2017-08-29 12:00:37 -03:00
reserve Bug 14353 - Show 'damaged' and other status on the 'place holds' page in staff 2017-09-01 13:00:05 -03:00
reviews
rotating_collections
serials Bug 19086: Fix Stored XSS in subscription-detail.pl 2017-09-29 12:20:45 -03:00
services
sms
suggestion Bug 18399: (follow-up) Escape reason input 2017-10-11 13:05:42 -03:00
tags
test
tools Bug 19414: Move the location of the 'Import this batch into the catalog' button 2017-10-11 13:05:36 -03:00
virtualshelves Bug 19255: Correct explanation about list types on shelves.pl in staff 2017-10-09 16:15:50 -03:00
about.tt Bug 19397: Release team for 17.11 2017-10-09 16:15:51 -03:00
auth.tt
intranet-main.tt