diff options
author | zotlabs <mike@macgirvin.com> | 2018-02-19 16:19:14 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2018-02-19 16:19:14 -0800 |
commit | 76b5c686460ed5fe4c93dc0e268d99dc9eb988b6 (patch) | |
tree | c8eb101027b5157014b50080a1d5c32101c67e42 /Zotlabs/Module/Token.php | |
parent | b6b4827680d14bcb0062bba4a272f661bbb33d8c (diff) | |
parent | 66309a3fea4b087ffef53ea93d5573278515dcf0 (diff) | |
download | volse-hubzilla-76b5c686460ed5fe4c93dc0e268d99dc9eb988b6.tar.gz volse-hubzilla-76b5c686460ed5fe4c93dc0e268d99dc9eb988b6.tar.bz2 volse-hubzilla-76b5c686460ed5fe4c93dc0e268d99dc9eb988b6.zip |
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'Zotlabs/Module/Token.php')
-rw-r--r-- | Zotlabs/Module/Token.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Zotlabs/Module/Token.php b/Zotlabs/Module/Token.php index 5cde58895..f7c074233 100644 --- a/Zotlabs/Module/Token.php +++ b/Zotlabs/Module/Token.php @@ -2,6 +2,8 @@ namespace Zotlabs\Module; +use Zotlabs\Identity\OAuth2Storage; + class Token extends \Zotlabs\Web\Controller { @@ -26,11 +28,10 @@ class Token extends \Zotlabs\Web\Controller { } } - - $s = new \Zotlabs\Identity\OAuth2Server(); - $s->server->handleTokenRequest(\OAuth2\Request::createFromGlobals())->send(); + $s = new \Zotlabs\Identity\OAuth2Server(new OAuth2Storage(\DBA::$dba->db)); + $s->handleTokenRequest(\OAuth2\Request::createFromGlobals())->send(); killme(); } -}
\ No newline at end of file +} |