]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 83044 - Any page is now capable of being a login page simply by adding the ?GoAhe...
authorjake%bugzilla.org <>
Sun, 13 Mar 2005 05:51:15 +0000 (05:51 +0000)
committerjake%bugzilla.org <>
Sun, 13 Mar 2005 05:51:15 +0000 (05:51 +0000)
r=joel, a=justdave

Bugzilla/Auth/Login/WWW.pm
template/en/default/account/created.html.tmpl
template/en/default/global/messages.html.tmpl
template/en/default/global/useful-links.html.tmpl
template/en/default/index.html.tmpl
template/en/default/sidebar.xul.tmpl

index cc3ae25e291caa494911e3cec26c81d3ac8cda03..f54e5760bd210914ed13b42407fb564f00b7c277 100644 (file)
@@ -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.
index cbd1227b5575c24a86e739fb6ab34b63cd7a25c9..2d507b4cfd5e901106957d78925475fe707e7ece 100644 (file)
@@ -36,7 +36,7 @@
 
 <p>
   When the e-mail arrives, 
-  <a href="query.cgi?GoAheadAndLogIn=1">log in here</a>.
+  <a href="index.cgi?GoAheadAndLogIn=1">log in here</a>.
 </p>
 
 [% PROCESS global/footer.html.tmpl %] 
index 5ed2eecf8dece1708b5b0e084a08c2faa81b1b27..0ce65ef096fd9efd8ce3d81e4b670a411f4a6455 100644 (file)
 
   [% ELSIF message_tag == "logged_out" %]
     [% title = "Logged Out" %]
-    [% url = "query.cgi?GoAheadAndLogIn=1" %]
+    [% url = "index.cgi?GoAheadAndLogIn=1" %]
     [% link = "Log in again." %]
     <b>Your login has been forgotten</b>.
     The cookie that was remembering your login is now gone. You will be
index 6d45bfd1b7f36c509b1668e227a49972fec4cd37..36a08a8b891b2481c5943be95421e1adc8535f91 100644 (file)
@@ -63,7 +63,7 @@
             [% IF Param('createemailregexp') %]
               | <a href="createaccount.cgi">New&nbsp;Account</a>
             [% END %]
-            | <a href="query.cgi?GoAheadAndLogIn=1">Log&nbsp;In</a>
+            | <a href="index.cgi?GoAheadAndLogIn=1">Log&nbsp;In</a>
         [% END %]
     </div>
   </div>
index c45ed9cc880b699a9a1f00110ba8c9b88a3b3439..c1bdf62c5e479ccd2ecc35bcf21367fadc954960 100644 (file)
@@ -72,7 +72,7 @@ function addSidebar() {
     <li id="logout"><a href="relogin.cgi">Logout [% user.login FILTER html %]</a></li>
   [% END %]
 [% ELSE %]
-    <li id="login"><a href="query.cgi?GoAheadAndLogIn=1">Log in to an existing account</a></li>
+    <li id="login"><a href="index.cgi?GoAheadAndLogIn=1">Log in to an existing account</a></li>
   [% IF Param('createemailregexp') %]
     <li id="account"><a href="createaccount.cgi">Open a new [% terms.Bugzilla %] account</a></li>
   [% END %]
index f510206d9f058afa25ace9b089cfda3d808ae4e9..b285cac56453894cd42fa53b766b6cce502d249f 100644 (file)
@@ -113,7 +113,7 @@ function normal_keypress_handler( aEvent ) {
 
 [% ELSE %]
       <text class="text-link" onclick="load_relative_url('createaccount.cgi')" value="new user"/>
-      <text class="text-link" onclick="load_relative_url('query.cgi?GoAheadAndLogIn=1')" value="log in"/>
+      <text class="text-link" onclick="load_relative_url('index.cgi?GoAheadAndLogIn=1')" value="log in"/>
 [% END %]
 
     </box>