From 39745bb1ce4eb24435970b1700cb94528475e3a2 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 19 Jul 2017 09:48:04 +0200 Subject: [PATCH] Bug 18955 - autocomplete is on in OPAC password recovery MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit In OPAC password recovery form autocomplete is not disabled. So when login or email is entered, it is saved in browser input history for autocomplete. This is a major issue for OPAC on computers with public access. This patch adds autocomplete off on forms. Test : - Enable system preferences OpacPasswordChange and OpacResetPassword - Go to OPAC - Be sure to not be logged in - Click on "Forgot your password?" - Enter a loggin and email and Submit => Without patch there is an autocompletion with values you entered => With patch there is no autocompletion Signed-off-by: Marc Véron Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart (cherry picked from commit 214a0e61021934c7e6deee5a24cf11606a57199b) Signed-off-by: Fridolin Somers (cherry picked from commit 7943a4500d45344e5ac4b02d2075ae039faf3d83) Signed-off-by: Katrin Fischer --- .../opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 b5bfe36f17..f5a0e30961 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 @@ -75,7 +75,7 @@ [% IF (!Koha.Preference('OpacResetPassword')) %]
You can't reset your password.
[% ELSIF (password_recovery) %] -
+

To reset your password, enter your login and email address. @@ -89,7 +89,7 @@

[% ELSIF (new_password) %] -
+
The password must contain at least [% minPassLength %] characters.
-- 2.39.5