Bugzilla – Attachment 186522 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 category-level password history count support
Bug-40824-Add-category-level-password-history-coun.patch (text/plain), 1.39 KB, created by
Jacob O'Mara
on 2025-09-17 09:47:57 UTC
(
hide
)
Description:
Bug 40824: Add category-level password history count support
Filename:
MIME Type:
Creator:
Jacob O'Mara
Created:
2025-09-17 09:47:57 UTC
Size:
1.39 KB
patch
obsolete
>From 24b466c7626ee6a6cb711a3a4b429928b70b51ae Mon Sep 17 00:00:00 2001 >From: Jacob O'Mara <Jacob.omara@openfifth.co.uk> >Date: Thu, 14 Aug 2025 11:20:52 +0100 >Subject: [PATCH] Bug 40824: Add category-level password history count support > >Add effective_password_history_count method to Patron::Category >that returns category-specific password_history_count or falls back >to system preference PasswordHistoryCount >--- > Koha/Patron/Category.pm | 15 +++++++++++++++ > 1 file changed, 15 insertions(+) > >diff --git a/Koha/Patron/Category.pm b/Koha/Patron/Category.pm >index ab4973b544a..4cf3a44d173 100644 >--- a/Koha/Patron/Category.pm >+++ b/Koha/Patron/Category.pm >@@ -251,6 +251,21 @@ sub effective_force_password_reset_when_set_by_staff { > return $self->force_password_reset_when_set_by_staff // C4::Context->preference('ForcePasswordResetWhenSetByStaff'); > } > >+=head3 effective_password_history_count >+ >+ $category->effective_password_history_count() >+ >+Returns the number of previous passwords to check against when changing password. >+If set in $self->password_history_count or, if undef, falls back to the PasswordHistoryCount >+system preference. >+ >+=cut >+ >+sub effective_password_history_count { >+ my ($self) = @_; >+ return $self->password_history_count // C4::Context->preference('PasswordHistoryCount'); >+} >+ > =head3 override_hidden_items > > if ( $patron->category->override_hidden_items ) { >-- >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