From 31570d1a282a92dd2f9f745414c2c40dbd4bdff1 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Thu, 4 Jun 2009 22:54:38 +0000 Subject: Bug 493642: Never include hidden_fields in the header/footer login form, and when a REQUIRE_LOGIN page shows a login form, hide the header/footer login form. Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- template/en/default/global/common-links.html.tmpl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'template/en/default/global') diff --git a/template/en/default/global/common-links.html.tmpl b/template/en/default/global/common-links.html.tmpl index 8ab2a2b02..b775da3e8 100644 --- a/template/en/default/global/common-links.html.tmpl +++ b/template/en/default/global/common-links.html.tmpl @@ -89,7 +89,14 @@ [% END %] - [% IF user.authorizer.can_login %] + [%# Only display one login form when we're on a LOGIN_REQUIRED page. That + # way, we're guaranteed that the user will use the form that has + # hidden_fields in it (the center form) instead of this one. Also, it's + # less confusing to have one form (as opposed to three) when you're + # required to log in. + #%] + [% USE Bugzilla %] + [% IF user.authorizer.can_login && !Bugzilla.page_requires_login %] [% PROCESS "account/auth/login-small.html.tmpl" %] [% END %] [% END %] -- cgit v1.2.3-24-g4f1b