# (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.
<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 %]
[% 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
[% IF Param('createemailregexp') %]
| <a href="createaccount.cgi">New Account</a>
[% END %]
- | <a href="query.cgi?GoAheadAndLogIn=1">Log In</a>
+ | <a href="index.cgi?GoAheadAndLogIn=1">Log In</a>
[% END %]
</div>
</div>
<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 %]
[% 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>