X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fopenid.php;h=58182590d467457f9e92b6d1e77d17e882d52fe3;hb=1d49ff4ae684f13250408798f4b0a945797a5229;hp=5b4eaffc0b2a7466c4d8fa0bf429480401e40559;hpb=34d91db6f55ab5398dbcde7cc10aaa5b5f8263a8;p=platal.git diff --git a/modules/openid.php b/modules/openid.php index 5b4eaff..5818259 100644 --- a/modules/openid.php +++ b/modules/openid.php @@ -1,6 +1,6 @@ GetQueryStringForRequest(); if (S::logged()) { pl_redirect('openid/trust', $openid_args); - } else if (count($_POST)) { + } else if (Post::has('openid_mode')) { pl_redirect('openid', $openid_args); } else { return PL_DO_AUTH; @@ -197,8 +197,7 @@ class OpenidModule extends PLModule // Finally answers the request. if ($server->IsUserAuthorized($user) && $trusted) { - $server->AnswerRequest( - true, $user, Post::b('trust_sreg') ? $sreg_response : null); + $server->AnswerRequest(true, Post::b('trust_sreg') ? $sreg_response : null); } else { $server->AnswerRequest(false); }