Bugzilla – Attachment 189205 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 has been used before" exception
Bug-40824-Add-password-has-been-used-before-except.patch (text/plain), 1.21 KB, created by
Jacob O'Mara
on 2025-11-06 19:34:12 UTC
(
hide
)
Description:
Bug 40824: Add "password has been used before" exception
Filename:
MIME Type:
Creator:
Jacob O'Mara
Created:
2025-11-06 19:34:12 UTC
Size:
1.21 KB
patch
obsolete
>From 9b202d103ad6d7080a0c7b61b04498d040243ede Mon Sep 17 00:00:00 2001 >From: Jacob O'Mara <jacob.omara@openfifth.co.uk> >Date: Thu, 10 Apr 2025 12:30:24 +0100 >Subject: [PATCH] Bug 40824: Add "password has been used before" exception > >--- > Koha/Exceptions/Password.pm | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > >diff --git a/Koha/Exceptions/Password.pm b/Koha/Exceptions/Password.pm >index 99568a37030..ccfaba59d3c 100644 >--- a/Koha/Exceptions/Password.pm >+++ b/Koha/Exceptions/Password.pm >@@ -48,7 +48,10 @@ use Exception::Class ( > 'Koha::Exceptions::Password::NoCategoryProvided' => { > isa => 'Koha::Exceptions::Password', > description => 'You must provide a patron\'s category to validate password\'s strength and length' >- } >+ }, >+ 'Koha::Exceptions::Password::UsedBefore' => { >+ isa => 'Koha::Exceptions::Password', >+ }, > ); > > sub full_message { >@@ -91,6 +94,10 @@ Password is too weak. > > Password contains leading/trailing spaces, which is forbidden. > >+=head2 Koha::Exceptions::Password::UsedBefore >+ >+Exception to be used when a password has been used before and is not allowed by password history policy. >+ > =head1 Class methods > > =head2 full_message >-- >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
|
189201
|
189202
|
189203
|
189204
| 189205 |
189206
|
189207
|
189208
|
189209
|
189210
|
189211
|
189212
|
189213
|
189214
|
189215
|
189216
|
189217