All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 336f6c3e authored by Leigh B. Stoller's avatar Leigh B. Stoller

Make sure the wikicookie is cleared when logging in so that a stale

one is not left in the browser. Generally this does not matter,
except that I often switch between users from the same browser.
parent e04ff474
......@@ -686,6 +686,17 @@ function DOLOGIN($token, $password, $adminmode = 0) {
$timeout = $now + (60 * 60 * 24 * 32);
setcookie($TBNAMECOOKIE, $uid, $timeout, "/", $TBAUTHDOMAIN, 0);
# Clear the existing Wiki cookie so that there is not an old one
# for a different user, sitting in the brower.
$flushtime = time() - 1000000;
setcookie($WIKICOOKIENAME, "", $flushtime, "/",
# Set adminoff on new logins, unless user requested to be
# logged in as admin (and is an admin of course!). This is
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