Bugzilla – Attachment 183683 Details for
Bug 40283
Accessibility of the status message in the OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40283: Change password page (opac-passwd)
Bug-40283-Change-password-page-opac-passwd.patch (text/plain), 4.24 KB, created by
Nina Martinez
on 2025-07-02 07:31:30 UTC
(
hide
)
Description:
Bug 40283: Change password page (opac-passwd)
Filename:
MIME Type:
Creator:
Nina Martinez
Created:
2025-07-02 07:31:30 UTC
Size:
4.24 KB
patch
obsolete
>From fc9f577abcf69b1d4fc3bb44c8ebedfda63a7829 Mon Sep 17 00:00:00 2001 >From: nina martinez <nina.martinez@biblibre.com> >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 @@ > <h1>Change your password </h1> > > [% IF ( Error_messages ) %] >- <div class="alert alert-warning"> >+ <div class="alert alert-warning" role="alert"> > <h2>There was a problem with your submission</h2> > <p> > [% IF ( passwords_mismatch ) %] >@@ -72,9 +72,11 @@ > <legend class="sr-only">Change your password</legend> > <fieldset> > [% IF ( logged_in_user.category.effective_require_strong_password ) %] >- <div class="alert alert-info">Your password must contain at least [% logged_in_user.category.effective_min_password_length | html %] characters, including UPPERCASE, lowercase and numbers.</div> >+ <div class="alert alert-info" role="alert" >+ >Your password must contain at least [% logged_in_user.category.effective_min_password_length | html %] characters, including UPPERCASE, lowercase and numbers.</div >+ > > [% ELSE %] >- <div class="alert alert-info">Your password must be at least [% logged_in_user.category.effective_min_password_length | html %] characters long.</div> >+ <div class="alert alert-info" role="alert">Your password must be at least [% logged_in_user.category.effective_min_password_length | html %] characters long.</div> > [% END %] > <div class="form-group"> > <label for="Oldkey">Current password:</label> >@@ -97,11 +99,11 @@ > </form> > [% END # /IF Ask_data %] > [% ELSE %] >- <div class="alert alert-warning">You can't change your password.</div> >+ <div class="alert alert-warning" role="alert">You can't change your password.</div> > [% END # /IF logged_in_user.category.effective_change_password %] > > [% IF ( password_updated ) %] >- <div class="alert alert-info"> >+ <div class="alert alert-info" role="status"> > <strong>Password updated</strong> > <br /> > Your password has been changed >-- >2.43.0
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 40283
:
183665
|
183666
|
183667
|
183668
|
183669
|
183670
|
183671
|
183672
|
183673
|
183674
|
183683
|
183684
|
183685
|
183686
|
183689
|
183690
|
183691
|
183692
|
183693
|
183694
|
183695
|
183696
|
183697
|
183698
|
183699
|
183700
|
183701