From 9b35c642e2a60fe7d20da5beac357885b726ddfb Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 25 Jan 2022 15:08:39 +0000 Subject: [PATCH] Bug 29924: (follow-up) Add bug number to atomicupdate; Style OPAC message - The atomicupdate didn't have "bug_number" defined. - The "Your password has expired" message is now styled with the same class as other OPAC login messages. Signed-off-by: Nick Clemens Signed-off-by: Bob Bennhoff Signed-off-by: Andrew Fuerste-Henry Signed-off-by: Tomas Cohen Arazi Signed-off-by: Fridolin Somers --- installer/data/mysql/atomicupdate/password_expire.pl | 2 +- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/installer/data/mysql/atomicupdate/password_expire.pl b/installer/data/mysql/atomicupdate/password_expire.pl index 2982685b45..049e8ba65a 100755 --- a/installer/data/mysql/atomicupdate/password_expire.pl +++ b/installer/data/mysql/atomicupdate/password_expire.pl @@ -1,7 +1,7 @@ use Modern::Perl; return { - bug_number => "BUG_NUMBER", + bug_number => "29924", description => "Add password expiration", up => sub { my ($args) = @_; diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt index dc8f2d9c1a..9f0df7bd08 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-auth.tt @@ -168,7 +168,9 @@ [% END # /UNLESS OPACShibOnly %] [% IF password_has_expired %] -

Error: Your password has expired!

+
+

Error: Your password has expired!

+
[% IF Koha.Preference('OpacPasswordChange') && Categories.can_any_reset_password %]