Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
2f63dfe6
Commit
2f63dfe6
authored
Mar 31, 2008
by
Leigh B. Stoller
Browse files
Clear trac authentication cookies when logging in to Emulab.
parent
9f63bc12
Changes
1
Show whitespace changes
Inline
Side-by-side
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
Supports
Markdown
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