Bugzilla – Attachment 186520 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: Show error for password history clash in opac-password-recovery.tt
Bug-40824-Show-error-for-password-history-clash-in.patch (text/plain), 2.12 KB, created by
Jacob O'Mara
on 2025-09-17 09:47:51 UTC
(
hide
)
Description:
Bug 40824: Show error for password history clash in opac-password-recovery.tt
Filename:
MIME Type:
Creator:
Jacob O'Mara
Created:
2025-09-17 09:47:51 UTC
Size:
2.12 KB
patch
obsolete
>From 70987bafc4714fa1094e47ca873a7ec886b70612 Mon Sep 17 00:00:00 2001 >From: Jacob O'Mara <jacob.omara@openfifth.co.uk> >Date: Thu, 10 Apr 2025 12:32:14 +0100 >Subject: [PATCH] Bug 40824: Show error for password history clash in > opac-password-recovery.tt > >--- > .../opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt | 2 ++ > opac/opac-password-recovery.pl | 2 ++ > 2 files changed, 4 insertions(+) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt >index 8d6f4003217..55d831ebe96 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt >@@ -111,6 +111,8 @@ > <li>Password must contain at least one digit, one lowercase and one uppercase.</li> > [% ELSIF password_has_whitespaces %] > <li>Password must not contain leading or trailing whitespaces.</li> >+ [% ELSIF password_used_before %] >+ <li>This password has been used before. You cannot reuse any of your last [% password_history_count | html %] passwords.</li> > [% ELSIF (errLinkNotValid) %] > The link you clicked is either invalid, or expired. > <br />Be sure you used the link from the email, or contact library staff for assistance. >diff --git a/opac/opac-password-recovery.pl b/opac/opac-password-recovery.pl >index 85841e93a24..e45f2d9015b 100755 >--- a/opac/opac-password-recovery.pl >+++ b/opac/opac-password-recovery.pl >@@ -179,6 +179,8 @@ if ( $op eq 'cud-sendEmail' || $op eq 'cud-resendEmail' ) { > $error = 'password_has_whitespaces'; > } elsif ( $_->isa('Koha::Exceptions::Password::TooWeak') ) { > $error = 'password_too_weak'; >+ } elsif ($_->isa('Koha::Exceptions::Password::UsedBefore')) { >+ $error = 'password_used_before'; > } > }; > } >-- >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