New Cookie API.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 21 Dec 2008 21:02:29 +0000 (22:02 +0100)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Sun, 21 Dec 2008 21:02:29 +0000 (22:02 +0100)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
classes/xorgsession.php

index e453eca..0335cb1 100644 (file)
@@ -54,7 +54,7 @@ class XorgSession extends PlSession
         $res = XDB::query('SELECT  uid, password
                              FROM  accounts
                             WHERE  uid = {?} AND state = \'active\'',
-                         Cookie::i('ORGuid'));
+                         Cookie::i('uid'));
         if ($res->numRows() != 0) {
             list($uid, $password) = $res->fetchOneRow();
             $expected_value = sha1($password);