Bugzilla – Attachment 186515 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.53 KB, created by
Jacob O'Mara
on 2025-09-17 09:47:38 UTC
(
hide
)
Description:
Bug 40824: Add "password has been used before" exception
Filename:
MIME Type:
Creator:
Jacob O'Mara
Created:
2025-09-17 09:47:38 UTC
Size:
1.53 KB
patch
obsolete
>From 5fa865cb356d7540cc0fc770dd70e4f336b80080 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 | 5 ++++- > Koha/Exceptions/Password/UsedBefore.pm | 12 ++++++++++++ > 2 files changed, 16 insertions(+), 1 deletion(-) > create mode 100644 Koha/Exceptions/Password/UsedBefore.pm > >diff --git a/Koha/Exceptions/Password.pm b/Koha/Exceptions/Password.pm >index b3d323f404d..a2f536726a7 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 { >diff --git a/Koha/Exceptions/Password/UsedBefore.pm b/Koha/Exceptions/Password/UsedBefore.pm >new file mode 100644 >index 00000000000..888361a0e01 >--- /dev/null >+++ b/Koha/Exceptions/Password/UsedBefore.pm >@@ -0,0 +1,12 @@ >+package Koha::Exceptions::Password::UsedBefore; >+ >+use Modern::Perl; >+ >+use Exception::Class ( >+ 'Koha::Exceptions::Password::UsedBefore' => { >+ isa => 'Koha::Exceptions::Exception', >+ description => 'Password has been used before', >+ }, >+); >+ >+1; >\ No newline at end of file >-- >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