summaryrefslogtreecommitdiff
path: root/plugins/OpenID/openid.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-05-28 16:52:17 -0700
committerBrion Vibber <brion@pobox.com>2010-05-28 16:52:17 -0700
commit58fe1a597c76dd6737abbe44e7cb7111d3ae3375 (patch)
tree6d8ddba5ae17df7f2985fc6acc42d5fa40932607 /plugins/OpenID/openid.php
parent3ba165cfab7ce30ade64bf557e9c248de2e07029 (diff)
OpenID: add option to enable asking for a username to append to the trusted provider's base URL. Good for hooking up with sites like WikiHow, where usernames are appended to a base URL to get a profile URL which is used as the provider.
$config['openid']['append_username'] = true; or check 'Append a username to base URL' in OpenID admin panel.
Diffstat (limited to 'plugins/OpenID/openid.php')
-rw-r--r--plugins/OpenID/openid.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/OpenID/openid.php b/plugins/OpenID/openid.php
index 574ecca72..8be02e031 100644
--- a/plugins/OpenID/openid.php
+++ b/plugins/OpenID/openid.php
@@ -144,8 +144,10 @@ function oid_authenticate($openid_url, $returnto, $immediate=false)
// Handle failure status return values.
if (!$auth_request) {
+ common_log(LOG_ERR, __METHOD__ . ": mystery fail contacting $openid_url");
return _m('Not a valid OpenID.');
} else if (Auth_OpenID::isFailure($auth_request)) {
+ common_log(LOG_ERR, __METHOD__ . ": OpenID fail to $openid_url: $auth_request->message");
return sprintf(_m('OpenID failure: %s'), $auth_request->message);
}