]> git.mxchange.org Git - friendica.git/blobdiff - mod/openid.php
Uncommon logger levels in Friendica (#5453)
[friendica.git] / mod / openid.php
index af7016c32b0dcd640566685786345f1e840026d3..3baeec28d04feab6ed8d06ff1439b7e38131121b 100644 (file)
@@ -19,7 +19,7 @@ function openid_content(App $a) {
 
        if((x($_GET,'openid_mode')) && (x($_SESSION,'openid'))) {
 
-               $openid = new LightOpenID;
+               $openid = new LightOpenID($a->get_hostname());
 
                if($openid->validate()) {
 
@@ -62,7 +62,7 @@ function openid_content(App $a) {
                        // Successful OpenID login - but we can't match it to an existing account.
                        // New registration?
 
-                       if ($a->config['register_policy'] == REGISTER_CLOSED) {
+                       if (intval(Config::get('config', 'register_policy')) === REGISTER_CLOSED) {
                                notice(L10n::t('Account not found and OpenID registration is not permitted on this site.') . EOL);
                                goaway(System::baseUrl());
                        }