X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fauthenticationplugin.php;h=66f11ca1a9507a5850bdb11418314b8407a39020;hb=b24d711f552854d88f2df2120672bdaf173335fc;hp=bf5f3aafe3a06f3d0c75eebac2f1e07a9880f517;hpb=220b51d8be61e9bd316567f3ad03fffdbc4b7526;p=quix0rs-gnu-social.git diff --git a/lib/authenticationplugin.php b/lib/authenticationplugin.php index bf5f3aafe3..66f11ca1a9 100644 --- a/lib/authenticationplugin.php +++ b/lib/authenticationplugin.php @@ -27,9 +27,7 @@ * @link http://status.net/ */ -if (!defined('STATUSNET') && !defined('LACONICA')) { - exit(1); -} +if (!defined('GNUSOCIAL')) { exit(1); } /** * Superclass for plugins that do authentication @@ -139,7 +137,7 @@ abstract class AuthenticationPlugin extends Plugin //not much else we can do }else{ $user = $this->autoRegister($nickname, $suggested_nickname); - if($user){ + if ($user instanceof User) { User_username::register($user,$nickname,$this->provider_name); return false; }