Skip to content
Snippets Groups Projects

Checkout oauth

Merged Brian Hatchet requested to merge brianhatchet/engine:checkout-oauth into master
4 unresolved threads
Files
3
@@ -8,7 +8,6 @@ use Minds\Core\SendWyre\Manager;
use Minds\Interfaces\Api;
use Minds\Core\Di\Di;
use Minds\Api\Factory;
use Cassandra\Varint;
class accounts implements Api
{
@@ -18,15 +17,10 @@ class accounts implements Api
/** @var \Minds\Core\SendWyre\Manager $manager */
$manager = Di::_()->get('SendWyre\Manager');
if (!isset($pages[0])) {
return Factory::response(['status' => 'error', 'message' => 'user_guid must be provided']);
}
$userGuid = new Varint($pages[0]);
$user = Session::getLoggedInUser();
try {
$account = $manager->get($userGuid);
$account = $manager->get($user->guid);
if (!$account) {
return Factory::response([]);
}
Loading