X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fopenid%2Fopenid.inc.php;h=0e0caa1c5a3ffb47c7c9c4e16756b0f9fc5643d5;hb=330ffaa012073e66a5c94a6dce3ef5c8e32f67b8;hp=c8c5bf7fe47876c25d17c9715153c7d2ac368363;hpb=5b516e6be17378ace0e375b9da14a46051bf0f4e;p=platal.git diff --git a/modules/openid/openid.inc.php b/modules/openid/openid.inc.php index c8c5bf7..0e0caa1 100644 --- a/modules/openid/openid.inc.php +++ b/modules/openid/openid.inc.php @@ -1,6 +1,6 @@ id(), $this->request->trust_root); return ($res->fetchOneCell() > 0); } @@ -151,8 +151,8 @@ class OpenId $initial_trust = $this->IsEndpointTrusted($user); if (!$initial_trust && $trusted && $permanent_trust) { XDB::execute( - "INSERT IGNORE INTO openid_trusted - SET user_id = {?}, url = {?}", + "INSERT IGNORE INTO account_auth_openid + SET uid = {?}, url = {?}", $user->id(), $this->request->trust_root); } @@ -177,7 +177,7 @@ class OpenId // Renders the main XRDS page. public function RenderMainXrdsPage(&$page) { - header('Content-type: application/xrds+xml'); + pl_content_headers("application/xrds+xml"); $page->changeTpl('openid/idp_xrds.tpl', NO_SKIN); $page->assign('type2', Auth_OpenID_TYPE_2_0_IDP); $page->assign('sreg', Auth_OpenID_SREG_URI); @@ -187,7 +187,7 @@ class OpenId // Renders the XRDS page of |user|. public function RenderUserXrdsPage(&$page, User &$user) { - header('Content-type: application/xrds+xml'); + pl_content_headers("application/xrds+xml"); $page->changeTpl('openid/user_xrds.tpl', NO_SKIN); $page->assign('type2', Auth_OpenID_TYPE_2_0); $page->assign('type1', Auth_OpenID_TYPE_1_1);