Commit 9a48b40e authored by gerv%gerv.net's avatar gerv%gerv.net

Bug 126791 - templatise relogin.cgi

parent de044355
...@@ -19,11 +19,13 @@ ...@@ -19,11 +19,13 @@
# Rights Reserved. # Rights Reserved.
# #
# Contributor(s): Terry Weissman <terry@mozilla.org> # Contributor(s): Terry Weissman <terry@mozilla.org>
# Gervase Markham <gerv@gerv.net>
use diagnostics; use diagnostics;
use strict; use strict;
use vars %::COOKIE; use vars %::COOKIE;
use vars qw($template $vars);
use lib qw(.); use lib qw(.);
...@@ -51,23 +53,24 @@ if ($::userid) { ...@@ -51,23 +53,24 @@ if ($::userid) {
my $cookiepath = Param("cookiepath"); my $cookiepath = Param("cookiepath");
print "Set-Cookie: Bugzilla_login= ; path=$cookiepath; expires=Sun, 30-Jun-80 00:00:00 GMT print "Set-Cookie: Bugzilla_login= ; path=$cookiepath; expires=Sun, 30-Jun-80 00:00:00 GMT
Set-Cookie: Bugzilla_logincookie= ; path=$cookiepath; expires=Sun, 30-Jun-80 00:00:00 GMT Set-Cookie: Bugzilla_logincookie= ; path=$cookiepath; expires=Sun, 30-Jun-80 00:00:00 GMT
Content-type: text/html
"; ";
# delete the cookie before dumping the header so that it shows the user # delete the cookie before dumping the header so that it shows the user
# as logged out if %commandmenu% is in the header # as logged out if %commandmenu% is in the header
delete $::COOKIE{"Bugzilla_login"}; delete $::COOKIE{"Bugzilla_login"};
PutHeader ("Relogin"); $vars->{'title'} = "Logged Out";
$vars->{'message'} = "<b>Your login has been forgotten</b>.
print "<B>Your login has been forgotten</B>.</P> The cookie that was remembering your login is
The cookie that was remembering your login is now gone. The next time you now gone. You will be prompted for a login the
do an action that requires a login, you will be prompted for it. next time it is required.";
<p> $vars->{'url'} = "query.cgi?GoAheadAndLogIn=1";
"; $vars->{'link'} = "Log in again here";
PutFooter(); print "Content-Type: text/html\n\n";
$template->process("global/message.html.tmpl", $vars)
|| DisplayError("Template process failed: " . $template->error())
&& exit;
exit; exit;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment