diff options
author | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2012-03-30 15:19:17 +0200 |
---|---|---|
committer | Tobias Diekershoff <tobias.diekershoff@gmx.net> | 2012-03-30 15:19:17 +0200 |
commit | 17c908973fc3574eb2d190f3d401e39823b4bb14 (patch) | |
tree | 61f7cc23a9fc4bb7a8d9a008ff9dc0ff3996fac3 /include/auth.php | |
parent | 5b4bb347a65b21c4119e22ef116b8b0aed626065 (diff) | |
download | volse-hubzilla-17c908973fc3574eb2d190f3d401e39823b4bb14.tar.gz volse-hubzilla-17c908973fc3574eb2d190f3d401e39823b4bb14.tar.bz2 volse-hubzilla-17c908973fc3574eb2d190f3d401e39823b4bb14.zip |
catch OpenID login errors in cases when the OpenID server does not answers
Diffstat (limited to 'include/auth.php')
-rwxr-xr-x | include/auth.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/auth.php b/include/auth.php index 835616a82..1341f3bb8 100755 --- a/include/auth.php +++ b/include/auth.php @@ -94,13 +94,17 @@ else { // Otherwise it's probably an openid. + try { require_once('library/openid.php'); $openid = new LightOpenID; $openid->identity = $openid_url; $_SESSION['openid'] = $openid_url; $a = get_app(); $openid->returnUrl = $a->get_baseurl(true) . '/openid'; - goaway($openid->authUrl()); + goaway($openid->authUrl()); + } catch (Exception $e) { + notice( t('We encountered a problem while logging in with the OpenID you provided. Please check the correct spelling of the ID.').'<br /><br >'. t('The error message was:').' '.$e->getMessage()); + } // NOTREACHED } } |