Bugzilla – Attachment 186524 Details for
Bug 40824
Add option to prevent re-use of passwords
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40824: Add password history count field to category admin
Bug-40824-Add-password-history-count-field-to-cate.patch (text/plain), 4.60 KB, created by
Jacob O'Mara
on 2025-09-17 09:48:02 UTC
(
hide
)
Description:
Bug 40824: Add password history count field to category admin
Filename:
MIME Type:
Creator:
Jacob O'Mara
Created:
2025-09-17 09:48:02 UTC
Size:
4.60 KB
patch
obsolete
>From 897ee3282a59c9661bb81d08a4df6425ba2b32a5 Mon Sep 17 00:00:00 2001 >From: Jacob O'Mara <Jacob.omara@openfifth.co.uk> >Date: Thu, 14 Aug 2025 11:50:54 +0100 >Subject: [PATCH] Bug 40824: Add password history count field to category admin > >Add password_history_count field to category administration: >- Add form field processing in admin/categories.pl >- Add input field to categories.tt template with system preference >fallback hint >--- > admin/categories.pl | 4 ++++ > koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt | 5 +++++ > 2 files changed, 9 insertions(+) > >diff --git a/admin/categories.pl b/admin/categories.pl >index 04b5e5cc024..ecc1991a401 100755 >--- a/admin/categories.pl >+++ b/admin/categories.pl >@@ -76,6 +76,7 @@ if ( $op eq 'add_form' ) { > my $exclude_from_local_holds_priority = $input->param('exclude_from_local_holds_priority'); > my $min_password_length = $input->param('min_password_length'); > my $require_strong_password = $input->param('require_strong_password'); >+ my $password_history_count = $input->param('password_history_count'); > my $noissuescharge = $input->param('noissuescharge') || undef; > my $noissueschargeguarantees = $input->param('noissueschargeguarantees') || undef; > my $noissueschargeguarantorswithguarantees = $input->param('noissueschargeguarantorswithguarantees') || undef; >@@ -88,6 +89,7 @@ if ( $op eq 'add_form' ) { > $reset_password = undef if $reset_password eq -1; > $change_password = undef if $change_password eq -1; > $min_password_length = undef unless length($min_password_length); >+ $password_history_count = $password_history_count ? int($password_history_count) : undef; > $require_strong_password = undef if $require_strong_password eq -1; > $force_password_reset_when_set_by_staff = undef if $force_password_reset_when_set_by_staff eq -1; > >@@ -117,6 +119,7 @@ if ( $op eq 'add_form' ) { > $category->exclude_from_local_holds_priority($exclude_from_local_holds_priority); > $category->min_password_length($min_password_length); > $category->require_strong_password($require_strong_password); >+ $category->password_history_count($password_history_count); > $category->noissuescharge($noissuescharge); > $category->noissueschargeguarantees($noissueschargeguarantees); > $category->noissueschargeguarantorswithguarantees($noissueschargeguarantorswithguarantees); >@@ -156,6 +159,7 @@ if ( $op eq 'add_form' ) { > exclude_from_local_holds_priority => $exclude_from_local_holds_priority, > min_password_length => $min_password_length, > require_strong_password => $require_strong_password, >+ password_history_count => $password_history_count, > noissuescharge => $noissuescharge, > noissueschargeguarantees => $noissueschargeguarantees, > noissueschargeguarantorswithguarantees => $noissueschargeguarantorswithguarantees, >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >index e91ba21feb3..2d3d81cc900 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categories.tt >@@ -309,6 +309,11 @@ > <input id="min_password_length" type="text" inputmode="numeric" name="min_password_length" value="[% category.min_password_length | html %]" /> > <div class="hint">Leave blank to use system default ([% Koha.Preference('minPasswordLength') | html %])</div> > </li> >+ <li> >+ <label for="password_history_count">Password history count:</label> >+ <input id="password_history_count" type="text" inputmode="numeric" name="password_history_count" value="[% category.password_history_count | html %]" /> >+ <div class="hint">Leave blank to use system default ([% Koha.Preference('PasswordHistoryCount') | html %])</div> >+ </li> > <li class="pwd_setting_wrapper"> > <label for="require_strong_password">Require strong password:</label> > <select id="require_strong_password" name="require_strong_password"> >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40824
:
186511
|
186512
|
186513
|
186514
|
186515
|
186516
|
186517
|
186518
|
186519
|
186520
|
186521
|
186522
|
186523
| 186524 |
186525
|
186526
|
186527