* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
// SimpleRegistration helpers ----------------------------------------------
// Determines which SREG data are requested by the endpoint, and returns them.
// SimpleRegistration helpers ----------------------------------------------
// Determines which SREG data are requested by the endpoint, and returns them.
$user->id(), $this->request->trust_root);
return ($res->fetchOneCell() > 0);
}
$user->id(), $this->request->trust_root);
return ($res->fetchOneCell() > 0);
}
// Updates the trust level for the given endpoint, based on the value pf
// |trusted| and |permanent_trust| (the latter is ignored when the former
// value is false). Returns true iff the current endpoint is trusted.
// Updates the trust level for the given endpoint, based on the value pf
// |trusted| and |permanent_trust| (the latter is ignored when the former
// value is false). Returns true iff the current endpoint is trusted.
$initial_trust = $this->IsEndpointTrusted($user);
if (!$initial_trust && $trusted && $permanent_trust) {
XDB::execute(
$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 = {?}",
// Page renderers ----------------------------------------------------------
// Renders the OpenId discovery page for |user|.
// Page renderers ----------------------------------------------------------
// Renders the OpenId discovery page for |user|.
{
pl_content_headers("application/xrds+xml");
$page->changeTpl('openid/idp_xrds.tpl', NO_SKIN);
{
pl_content_headers("application/xrds+xml");
$page->changeTpl('openid/idp_xrds.tpl', NO_SKIN);
{
pl_content_headers("application/xrds+xml");
$page->changeTpl('openid/user_xrds.tpl', NO_SKIN);
{
pl_content_headers("application/xrds+xml");
$page->changeTpl('openid/user_xrds.tpl', NO_SKIN);
// URL providers -----------------------------------------------------------
// Returns the OpenId identity URL of the requested user.
// URL providers -----------------------------------------------------------
// Returns the OpenId identity URL of the requested user.