Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-devel
Commits
2f63dfe6
Commit
2f63dfe6
authored
Mar 31, 2008
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clear trac authentication cookies when logging in to Emulab.
parent
9f63bc12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
www/tbauth.php3
www/tbauth.php3
+11
-2
No files found.
www/tbauth.php3
View file @
2f63dfe6
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-200
7
University of Utah and the Flux Group.
# Copyright (c) 2000-200
8
University of Utah and the Flux Group.
# All rights reserved.
#
#
...
...
@@ -901,7 +901,7 @@ function DOLOGIN_MAGIC($uid, $uid_idx, $email = null, $adminon = 0)
global
$TBNAMECOOKIE
,
$TBLOGINCOOKIE
,
$TBSECURECOOKIES
,
$TBEMAILCOOKIE
;
global
$TBMAIL_OPS
,
$TBMAIL_AUDIT
,
$TBMAIL_WWW
;
global
$WIKISUPPORT
,
$WIKICOOKIENAME
;
global
$BUGDBSUPPORT
,
$BUGDBCOOKIENAME
;
global
$BUGDBSUPPORT
,
$BUGDBCOOKIENAME
,
$TRACSUPPORT
;
# Caller makes these checks too.
if
(
!
TBvalid_uid
(
$uid
))
{
...
...
@@ -984,6 +984,15 @@ function DOLOGIN_MAGIC($uid, $uid_idx, $email = null, $adminon = 0)
setcookie
(
$BUGDBCOOKIENAME
,
""
,
$flushtime
,
"/"
,
$TBAUTHDOMAIN
,
$TBSECURECOOKIES
);
}
# These cookie names are still in flux.
if
(
$TRACSUPPORT
)
{
$flushtime
=
time
()
-
1000000
;
setcookie
(
"trac_auth_emulab"
,
""
,
$flushtime
,
"/"
,
$TBAUTHDOMAIN
,
$TBSECURECOOKIES
);
setcookie
(
"trac_auth_protogeni"
,
""
,
$flushtime
,
"/"
,
$TBAUTHDOMAIN
,
$TBSECURECOOKIES
);
}
DBQueryFatal
(
"update users set "
.
" weblogin_failcount=0,weblogin_failstamp=0 "
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment