Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
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
..
preferences Bug 18298: Enforce password complexity 2017-10-16 09:44:32 -03:00
searchengine/elasticsearch
admin-home.tt Bug 18700 Fix grammar (data cannot be pluralized) 2017-06-05 11:46:58 -03:00
aqbudgetperiods.tt Bug 18351: Able to delete budget with funds 2017-09-12 11:28:53 -03:00
aqbudgets.tt
aqcontract.tt
aqplan.tt
audio_alerts.tt
auth_subfields_structure.tt
auth_tag_structure.tt
authorised_values.tt Bug 19391: (bug 19128 follow-up) Fix failing tests from auth_values_input_www.t 2017-09-29 17:12:18 -03:00
authtypes.tt Bug 19108: Fix Stored XSS in authtypes.pl 2017-09-29 12:20:50 -03:00
biblio_framework.tt Bug 19108: (follow-up) Fix Stored XSS in biblio_framework.pl 2017-09-29 12:20:51 -03:00
branch_transfer_limits.tt Bug 18965 - branch transfer limits pagination save bug 2017-07-24 13:38:14 -03:00
branches.tt Bug 10132: (QA followup) Open LOC URL on a separate window 2017-09-19 09:47:28 -03:00
categories.tt Bug 19128: Fix Stored XSS in patron-attr-types.pl, authorised_values.pl and categories.pl 2017-09-29 12:20:45 -03:00
checkmarc.tt
cities.tt Bug 19034: XSS Flaws in Cities 2017-08-29 12:00:37 -03:00
classsources.tt Bug 19108: Fix Stored XSS in classsources.pl 2017-09-29 12:20:50 -03:00
clone-rules.tt
columns_settings.tt
currency.tt Bug 19033: XSS Flaws in Currencies and exchange page 2017-08-29 12:00:37 -03:00
didyoumean.tt
edi_accounts.tt Bug 18699: Get rid of %%] in translation for edi_accounts.tt 2017-06-16 17:04:08 -03:00
edi_ean_accounts.tt
fieldmapping.tt Bug 19108: (follow-up) Fix Stored XSS in fieldmapping.pl and items_search_fields.pl 2017-09-29 12:20:51 -03:00
item_circulation_alerts.tt
items_search_field.tt Bug 19108: Fix Stored XSS in items_search_fields.pl 2017-09-29 12:20:50 -03:00
items_search_fields.tt Bug 19108: (follow-up) Fix Stored XSS in fieldmapping.pl and items_search_fields.pl 2017-09-29 12:20:51 -03:00
itemtypes.tt Bug 19103: (follow-up) Fix Stored XSS in itemtypes.pl 2017-09-29 12:20:46 -03:00
koha2marclinks.tt
localization.tt
marc_subfields_structure.tt
marctagstructure.tt Bug 19108: Fix Stored XSS in biblio_framework.pl and marctagstructure.pl 2017-09-29 12:20:51 -03:00
matching-rules.tt Bug 19103: Fix Stored XSS in matching-rules.pl 2017-09-29 12:20:46 -03:00
oai_set_mappings.tt Bug 19108: Fix Stored XSS in oai_sets.pl 2017-09-29 12:20:47 -03:00
oai_sets.tt Bug 19108: Fix Stored XSS in oai_sets.pl 2017-09-29 12:20:47 -03:00
patron-attr-types.tt Bug 19103: Fix Stored XSS in patron-attr-types.pl 2017-09-29 12:20:46 -03:00
preferences.tt Bug 16726: Do not display "You searched for:" if not needed 2017-10-03 11:06:07 -03:00
printers.tt
smart-rules.tt Bug 19027 - Circulation rules: Better wording for standard rules for all libraries 2017-08-10 16:25:35 -03:00
sms_providers.tt
sru_modmapping.tt
systempreferences.tt
transport-cost-matrix.tt
usage_statistics.tt
z3950servers.tt Bug 19034: XSS Flaws in Z39.50/SRU servers administration 2017-08-29 12:00:37 -03:00