From 297599c277be93e0d57c612d7d0311a92f2330a5 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 9 Mar 2022 19:19:22 -1000 Subject: [PATCH] Bug 30265 - Hide 'Log into your account' in OPAC authentication page If not logged in, in OPAC header there is link 'Log into your account'. Using it shows a popup with authentication form. In authentication page /cgi-bin/koha/opac-user.pl this double authentication form feels not ergonomic. It may lead to misunderstanding. We can simply hide this link in this special page. Test plan : 1) Go to OPAC not logged in 2) Go to main page => You see link 'Log into your account' 3) Go to /cgi-bin/koha/opac-user.pl => You don't see 'Log into your account' 4) Authenticate 5) You are still in /cgi-bin/koha/opac-user.pl => You see link 'Welcome, XXX' 6) Go to main page => You see link 'Welcome, XXX' Signed-off-by: Sally --- koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc index 33f0e487a1..c5343811b6 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc @@ -95,7 +95,7 @@ Welcome, [% INCLUDE 'patron-title.inc' patron = logged_in_user no_html = 1 %] Log out - [% ELSE %] + [% ELSIF ( script_name != '/cgi-bin/koha/opac-user.pl' ) %] [% IF Koha.Preference('casAuthentication') %] [%# CAS authentication is too complicated for modal window %] -- 2.30.2