From fc9f577abcf69b1d4fc3bb44c8ebedfda63a7829 Mon Sep 17 00:00:00 2001 From: nina martinez Date: Mon, 16 Jun 2025 15:02:01 +0200 Subject: [PATCH] Bug 40283: Change password page (opac-passwd) Test plan: 1. Enable the system preference: OpacPasswordChange, RequireStrongPassword 2. Log in to a Patron account, choose "Change Password". A message should appear "You password must contain ... and numbers.". Inspect the html code and notice that there is a role="alert" in the message tag. 3. Enter an incorrect current password and a new password, then submit. A message should appear "Your current password was ... to reset your password for you". Inspect the html code, and notice that there is a role="alert" in the message tag. 4. Enter your current password, change it to a new one, and confirm. A message should appear "Your password has been changed.". Inspect the html code, and notice that there is a role="status" in the message tag. 5. Go to the Staff interface. Don't allow the system preference: OpacPasswordChange. Go back to the OPAC, refresh the page: opac-passwd.pl A message should appear "You can't change your password". Inspect the html code and notice that there is a role='alert' in the message tag. --- .../opac-tmpl/bootstrap/en/modules/opac-passwd.tt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-passwd.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-passwd.tt index 95ce30e456..b096a1416c 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-passwd.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-passwd.tt @@ -42,7 +42,7 @@

Change your password

[% IF ( Error_messages ) %] -
+