From: jake%bugzilla.org <> Date: Sun, 13 Mar 2005 05:51:15 +0000 (+0000) Subject: Bug 83044 - Any page is now capable of being a login page simply by adding the ?GoAhe... X-Git-Tag: bugzilla-2.19.3~161 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9a03e405b9e37fa37e1e07b086e510e746ef71b;p=thirdparty%2Fbugzilla.git Bug 83044 - Any page is now capable of being a login page simply by adding the ?GoAheadAndLogin=1 option to the URL. All links have been changed to make index.cgi the default login page instead of query.cgi. r=joel, a=justdave --- diff --git a/Bugzilla/Auth/Login/WWW.pm b/Bugzilla/Auth/Login/WWW.pm index cc3ae25e29..f54e5760bd 100644 --- a/Bugzilla/Auth/Login/WWW.pm +++ b/Bugzilla/Auth/Login/WWW.pm @@ -51,6 +51,7 @@ sub login { # (double cookies, odd compat code settings, etc) return $user if $user->id; + $type = LOGIN_REQUIRED if Bugzilla->cgi->param('GoAheadAndLogIn'); $type = LOGIN_NORMAL unless defined $type; # Log in using whatever methods are defined in user_info_class. diff --git a/template/en/default/account/created.html.tmpl b/template/en/default/account/created.html.tmpl index cbd1227b55..2d507b4cfd 100644 --- a/template/en/default/account/created.html.tmpl +++ b/template/en/default/account/created.html.tmpl @@ -36,7 +36,7 @@

When the e-mail arrives, - log in here. + log in here.

[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/global/messages.html.tmpl b/template/en/default/global/messages.html.tmpl index 5ed2eecf8d..0ce65ef096 100644 --- a/template/en/default/global/messages.html.tmpl +++ b/template/en/default/global/messages.html.tmpl @@ -156,7 +156,7 @@ [% ELSIF message_tag == "logged_out" %] [% title = "Logged Out" %] - [% url = "query.cgi?GoAheadAndLogIn=1" %] + [% url = "index.cgi?GoAheadAndLogIn=1" %] [% link = "Log in again." %] Your login has been forgotten. The cookie that was remembering your login is now gone. You will be diff --git a/template/en/default/global/useful-links.html.tmpl b/template/en/default/global/useful-links.html.tmpl index 6d45bfd1b7..36a08a8b89 100644 --- a/template/en/default/global/useful-links.html.tmpl +++ b/template/en/default/global/useful-links.html.tmpl @@ -63,7 +63,7 @@ [% IF Param('createemailregexp') %] | New Account [% END %] - | Log In + | Log In [% END %] diff --git a/template/en/default/index.html.tmpl b/template/en/default/index.html.tmpl index c45ed9cc88..c1bdf62c5e 100644 --- a/template/en/default/index.html.tmpl +++ b/template/en/default/index.html.tmpl @@ -72,7 +72,7 @@ function addSidebar() {
  • Logout [% user.login FILTER html %]
  • [% END %] [% ELSE %] -
  • Log in to an existing account
  • +
  • Log in to an existing account
  • [% IF Param('createemailregexp') %]
  • Open a new [% terms.Bugzilla %] account
  • [% END %] diff --git a/template/en/default/sidebar.xul.tmpl b/template/en/default/sidebar.xul.tmpl index f510206d9f..b285cac564 100644 --- a/template/en/default/sidebar.xul.tmpl +++ b/template/en/default/sidebar.xul.tmpl @@ -113,7 +113,7 @@ function normal_keypress_handler( aEvent ) { [% ELSE %] - + [% END %]