From: Florent Bruneau Date: Sun, 22 Jun 2008 14:32:41 +0000 (+0200) Subject: Auth use Post data, not Env, remove debug. X-Git-Tag: xorg/0.10.0~191 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=e64c8b6163eabdd0b94f9fca2f8cf4106aa9bb7a;p=platal.git Auth use Post data, not Env, remove debug. Signed-off-by: Florent Bruneau --- diff --git a/classes/xorgsession.php b/classes/xorgsession.php index b63420a..97e9a24 100644 --- a/classes/xorgsession.php +++ b/classes/xorgsession.php @@ -50,7 +50,6 @@ class XorgSession extends PlSession */ private function tryCookie() { - Platal::page()->trigError("Trying cookie"); S::kill('auth_by_cookie'); if (Cookie::v('ORGaccess') == '' || !Cookie::has('ORGuid')) { return -1; @@ -125,7 +124,7 @@ class XorgSession extends PlSession /* We want to do auth... we must have infos from a form. */ - if (!Env::has('username') || !Env::has('response') || !S::has('challenge')) { + if (!Post::has('username') || !Post::has('response') || !S::has('challenge')) { return null; }