Do not fail to login back just after logging out (when ?logout=1 is still in URL)

3col
Vitaliy Filippov 2015-10-13 18:55:18 +03:00
parent e34e9158fb
commit 400a4b1bed
4 changed files with 5 additions and 4 deletions

View File

@ -39,7 +39,7 @@
<label for="Bugzilla_restrictlogin" title="Restrict this session to this IP address (using this option improves security)">Restrict to IP</label>
[% PROCESS "global/hidden-fields.html.tmpl"
exclude="^Bugzilla_(login|password|restrictlogin)$" %]
exclude="^Bugzilla_(login|password|restrictlogin)$|^logout$|^GoAheadAndLogIn$" %]
<input type="submit" name="GoAheadAndLogIn" value="Log in to [% terms.Bugzilla %]" id="log_in" />

View File

@ -41,9 +41,10 @@
[%# Use the current script name. If an empty name is returned,
# then we are accessing the home page. %]
[% cgi.delete('logout') %]
[% login_target = cgi.url("-relative" => 1, "-query" => 1) %]
[% IF !login_target OR login_target.match("^token.cgi") %]
[% login_target = "index.cgi" %]
[% login_target = "index.cgi" %]
[% END %]
[% login_target = urlbase _ login_target %]

View File

@ -77,7 +77,7 @@
</table>
[% PROCESS "global/hidden-fields.html.tmpl"
exclude="^Bugzilla_(login|password|restrictlogin)$" %]
exclude="^Bugzilla_(login|password|restrictlogin)$|^logout$|^GoAheadAndLogIn$" %]
<input type="submit" name="GoAheadAndLogIn" value="Log in" id="log_in" />

View File

@ -27,7 +27,7 @@
[% p = Bugzilla.input_params %]
[% FOREACH field = p.keys %]
[% NEXT IF exclude_hash && exclude_hash.$field %]
[% NEXT IF exclude && field.search(exclude) %]
[% NEXT IF exclude && field.match(exclude) %]
[% IF blessed(p.$field) %]
<div class="box">
<p>