Bugzilla – Attachment 86978 Details for
Bug 22561
Forgotten password requirements hint doesn't list all rules for new passwords
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22561: Forgotten password requirements hint doesn't list all rules for new passwords
Bug-22561-Forgotten-password-requirements-hint-doe.patch (text/plain), 6.75 KB, created by
Liz Rea
on 2019-03-25 14:42:09 UTC
(
hide
)
Description:
Bug 22561: Forgotten password requirements hint doesn't list all rules for new passwords
Filename:
MIME Type:
Creator:
Liz Rea
Created:
2019-03-25 14:42:09 UTC
Size:
6.75 KB
patch
obsolete
>From 1293ba539a818d1f53b87eab9c1884b701b80467 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 22 Mar 2019 12:57:31 +0000 >Subject: [PATCH] Bug 22561: Forgotten password requirements hint doesn't list > all rules for new passwords > >This patch modifies a few templates in the OPAC so that all available >information on password requirements is displayed for each case where >the patron is setting a password: > > - If the RequireStrongPassword system preference is set, a message > should appear listing strong password requirements and minimum > password length. > - If RequireStrongPassword is not set, the message should only ask for > a minimum password length. > >To test, apply the patch and enable the PatronSelfRegistration and >OpacResetPassword preferences. > >On the following pages, test with RequireStrongPassword both on and >off. The correct messages should appear. > > - OPAC -> Forgot password. Follow the process to reset your password > until you reach the step where you are entering the new password. > - OPAC -> Register here. Check the password section of the registration > form. > - OPAC -> Log in -> Change your password. > >Signed-off-by: Liz Rea <wizzyrea@gmail.com> >--- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt | 8 ++++++-- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-passwd.tt | 7 ++++++- > .../opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt | 8 ++++++-- > 3 files changed, 18 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >index 7d238ed7cd..daf56b8d45 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-memberentry.tt >@@ -809,9 +809,13 @@ > <fieldset class="rows" id="memberentry_password"> > <legend id="contact_legend">Password</legend> > <div class="alert alert-info"> >- <p>Your password must be at least [% Koha.Preference('minPasswordLength') | html %] characters long.</p> >+ [% IF ( Koha.Preference('RequireStrongPassword') ) %] >+ <p>Your password must contain at least [% Koha.Preference('minPasswordLength') | html %] characters, including UPPERCASE, lowercase and numbers.</p> >+ [% ELSE %] >+ <p>Your password must be at least [% Koha.Preference('minPasswordLength') | html %] characters long.</p> >+ [% END %] > [% UNLESS mandatory.defined('password') %] >- <div>If you do not enter a password a system generated password will be created.</div> >+ <p>If you do not enter a password a system generated password will be created.</p> > [% END %] > </div> > >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 264f1e9307..2126742681 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-passwd.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-passwd.tt >@@ -54,9 +54,14 @@ > [% IF ( OpacPasswordChange ) %] > [% IF ( Ask_data ) %] > >+ > <form action="/cgi-bin/koha/opac-passwd.pl" name="mainform" id="mainform" method="post" autocomplete="off"> > <fieldset> >- [% UNLESS ( ShortPass ) %]<div class="alert alert-info">Your password must be at least [% minPasswordLength | html %] characters long.</div>[% END %] >+ [% IF ( Koha.Preference('RequireStrongPassword') ) %] >+ <div class="alert alert-info">Your password must contain at least [% Koha.Preference('minPasswordLength') | html %] characters, including UPPERCASE, lowercase and numbers.</div> >+ [% ELSE %] >+ <div class="alert alert-info">Your password must be at least [% Koha.Preference('minPasswordLength') | html %] characters long.</div> >+ [% END %] > <label for="Oldkey">Current password:</label> <input type="password" id="Oldkey" size="25" name="Oldkey" /> > <label for="Newkey">New password:</label> <input type="password" id="Newkey" size="25" name="Newkey" /> > <label for="Confirm">Re-type new password:</label> <input type="password" id="Confirm" size="25" name="Confirm" /> >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 73eb975eca..9dc64e96df 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 >@@ -103,7 +103,11 @@ > <form action="/cgi-bin/koha/opac-password-recovery.pl" method="post" autocomplete="off"> > <input type="hidden" name="koha_login_context" value="opac" /> > <fieldset> >- <div class="alert alert-info">The password must contain at least [% minPasswordLength | html %] characters.</div> >+ [% IF ( Koha.Preference('RequireStrongPassword') ) %] >+ <div class="alert alert-info">Your password must contain at least [% Koha.Preference('minPasswordLength') | html %] characters, including UPPERCASE, lowercase and numbers.</div> >+ [% ELSE %] >+ <div class="alert alert-info">Your password must be at least [% Koha.Preference('minPasswordLength') | html %] characters long.</div> >+ [% END %] > <label for="password">New password:</label> > <input type="password" id="password" size="40" name="password" /> > <label for="repeatPassword">Confirm new password:</label> >@@ -122,7 +126,7 @@ > <br/>Please click the link in this email to finish the process of resetting your password. > <br/>This link is valid for 2 days starting now. > </p> >- <a href="/cgi-bin/koha/opac-main.pl"">Return to the main page</a> >+ <a href="/cgi-bin/koha/opac-main.pl">Return to the main page</a> > </div> > [% ELSIF (password_reset_done) %] > <div class="alert alert-success"> >-- >2.11.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 22561
:
86907
|
86978
|
86980