[Koha-bugs] [Bug 12617] Koha should let admins to configure automatically generated password complexity/difficulty

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jul 27 09:32:49 CEST 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=12617

--- Comment #7 from Emmi Takkinen <emmi.takkinen at outlook.com> ---
Created attachment 107384
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=107384&action=edit
Bug 12617: Add syspref PasswordLengthsForCategories

Sometimes different patron categories using same password policy would
require different lengths in their passwords. In these cases having one
length per policy isn't always ideal.

This patch adds new syspref 'PasswordLengthsForCategories' to define
password lengths for different patron categories in YAML format and removes
use of 'minAlnumPasswordLength' and 'minComplexPasswordLength'. If category
has no rule set syspref 'minPasswordLength' is used.

To test:
1. Run updatedatabase.pl
2. Define some rules to 'PasswordLengthsForCategories' (e.g example provided)
3. Try setting and changing password in different pages (basically follow test
plans from previous patches).
4. Confirm error messages are displayed correctly.

Also prove t/AuthUtils.t.

Sponsored-by: Koha-Suomi Oy

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list