Keep 'token' in the session since there are hardcoded references to this
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 27 Sep 2010 08:55:19 +0000 (10:55 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Mon, 27 Sep 2010 08:55:19 +0000 (10:55 +0200)
variable in the core.

Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/xorgsession.php

index 4df4a40..c7a5afd 100644 (file)
@@ -208,7 +208,7 @@ class XorgSession extends PlSession
         }
 
         // Loads uid and hruid into the session for developement conveniance.
-        $_SESSION = array_merge($_SESSION, array('uid' => $user->id(), 'hruid' => $user->hruid));
+        $_SESSION = array_merge($_SESSION, array('uid' => $user->id(), 'hruid' => $user->hruid, 'token' => $user->token));
 
         // Starts the session's logger, and sets up the permanent cookie.
         if (S::suid()) {