X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fopenid.php;h=9128ecddcc25a02004703faee901c06b5a05d857;hb=0299b6f2caa5b3b956c9e00a17d6cf3c72966396;hp=2485976eed23d601601e3396bfcf2905c6d1c723;hpb=43d0c82c9c74798ed2d2174159a2e3aa6f957864;p=quix0rs-gnu-social.git diff --git a/lib/openid.php b/lib/openid.php index 2485976eed..9128ecddcc 100644 --- a/lib/openid.php +++ b/lib/openid.php @@ -19,7 +19,11 @@ if (!defined('LACONICA')) { exit(1); } +require_once(INSTALLDIR.'/classes/User_openid.php'); + +require_once('Auth/OpenID.php'); require_once('Auth/OpenID/Consumer.php'); +require_once('Auth/OpenID/SReg.php'); require_once('Auth/OpenID/MySQLStore.php'); function oid_store() { @@ -28,13 +32,13 @@ function oid_store() { # Can't be called statically $user = new User(); $conn = $user->getDatabaseConnection(); - $store = new Auth_OpenID_SQLStore($conn); + $store = new Auth_OpenID_MySQLStore($conn); } return $store; } function oid_consumer() { $store = oid_store(); - $consumer = Auth_OpenID_Consumer($store); + $consumer = new Auth_OpenID_Consumer($store); return $consumer; } \ No newline at end of file