diff options
author | Patrick Davison <snapwilliam@gmail.com> | 2013-06-04 03:23:23 -0700 |
---|---|---|
committer | Patrick Davison <snapwilliam@gmail.com> | 2013-06-04 03:23:23 -0700 |
commit | 4d657b1f9b42f44cb86452984361ccd2dcaaf794 (patch) | |
tree | 9b2590bde58ae903b0e0d131e767661a3fef1653 | |
parent | 1e38f5d653cd831a226f47e2b87ab005b65aa677 (diff) | |
parent | 682b9ee96b6aad33b1339ce0fca4c855deaec1e3 (diff) | |
download | pathery-4d657b1f9b42f44cb86452984361ccd2dcaaf794.tar.xz |
Merge branch 'HEAD' of ssh://git@git.raylu.net/pathery
-rw-r--r-- | includes/openid.php | 2 | ||||
-rw-r--r-- | pages/login.php | 6 |
2 files changed, 3 insertions, 5 deletions
diff --git a/includes/openid.php b/includes/openid.php index 85af9a8..d0e656f 100644 --- a/includes/openid.php +++ b/includes/openid.php @@ -349,7 +349,7 @@ class LightOpenID $headers = $this->request($url, 'HEAD'); $next = false; - if (isset($headers['x-xrds-location'])) { + if (isset($headers['x-xrds-location']) && !isset($this->data['openid_claimed_id'])) { $url = $this->build_url(parse_url($url), parse_url(trim($headers['x-xrds-location']))); $next = true; } diff --git a/pages/login.php b/pages/login.php index e5ccda8..d277cb7 100644 --- a/pages/login.php +++ b/pages/login.php @@ -52,10 +52,8 @@ try { $display = 'noname';
}
$email = $openIdAttributes['contact/email'];
- //$claimedid = $openid->__get('identity');
- // Yahoo fix:
- $claimedid = $openid->__get('openid_identity');
-
+ $claimedid = $openid->__get('identity');
+
if ($claimedid == "https://open.login.yahooapis.com/openid20/user_profile/xrds") {
die(throwLoginError($openIdAttributes, "Yahoo went full retard, and didn't send any way for me to identify you..."));
}
|