[Koha-bugs] [Bug 23816] Allow to have different password strength and length settings for different patron categories
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Aug 26 16:24:25 CEST 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23816
--- Comment #44 from AgustÃn Moyano <agustinmoyano at theke.io> ---
(In reply to Jonathan Druart from comment #42)
> (In reply to Jonathan Druart from comment #41)
> > 2. I am not sure we should modify misc/admin/set_password.pl
> > It's an sysop script, and sysops (are supposed to) know what they are doing.
> > It's a behaviour change that is not advertised.
> > (for discussion)
>
> Sorry, I misread. That is for password generation, if none provided.
>
> Where is this '6' coming from? :)
That 6 comes from here
$generator->randregex('[A-Za-z][A-Za-z0-9_]{6}.[A-Za-z][A-Za-z0-9_]{6}\d');
^
The last 6 in the regex means the length it will generate, and in my script I
replaced that part with:
'[A-Za-z][A-Za-z0-9_]{6}.[A-Za-z][A-Za-z0-9_]{'.$n.'}\d'
where $n was the minimum password length for the user's category
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list