X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fuser.php;h=23023abd65122901045c4b11244fe29186951b05;hb=8adc1bd703a6f610296691dabf54c5b8fd0e1699;hp=6f4ab30215a109f3187b14061831b96b95523bbc;hpb=07ba4da6349a768033d4ac56fecec06169cd75b9;p=friendica.git diff --git a/include/user.php b/include/user.php index 6f4ab30215..23023abd65 100644 --- a/include/user.php +++ b/include/user.php @@ -60,7 +60,13 @@ function create_user($arr) { $openid->returnUrl = $a->get_baseurl() . '/openid'; $openid->required = array('namePerson/friendly', 'contact/email', 'namePerson'); $openid->optional = array('namePerson/first','media/image/aspect11','media/image/default'); - goaway($openid->authUrl()); + try { + $authurl = $openid->authUrl(); + } catch (Exception $e){ + $result['message'] .= t("We encountered a problem while logging in with the OpenID you provided. Please check the correct spelling of the ID."). EOL . EOL . t("The error message was:") . $e->getMessage() . EOL; + return $result; + } + goaway($authurl); // NOTREACHED }