From: Tim Starling Date: Tue, 26 Jun 2007 20:40:02 +0000 (+0000) Subject: When you log in from cookie, make the session valid for login as well. Not sure what... X-Git-Tag: 1.31.0-rc.0~52385 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22calendrier%22%2C%22type=semaine%22%29%20.%20%22?a=commitdiff_plain;h=47cf9cbe6395404834d12c6717cdebd101931eef;p=lhc%2Fweb%2Fwiklou.git When you log in from cookie, make the session valid for login as well. Not sure what the point of it is otherwise. Necessary for BoardVote session transfer stuff. --- diff --git a/includes/User.php b/includes/User.php index 1b7b113125..259c83bb29 100644 --- a/includes/User.php +++ b/includes/User.php @@ -725,6 +725,7 @@ class User { } if ( ( $sName == $this->mName ) && $passwordCorrect ) { + $_SESSION['wsToken'] = $this->mToken; wfDebug( "Logged in from $from\n" ); return true; } else {