Session ID returned correctly

Session ID was not returned correctly after creating a session.
This commit is contained in:
Thomas Vranken 2014-09-06 17:53:02 +02:00
parent 7d8989a8cd
commit 6ce190d33b

View File

@ -87,7 +87,7 @@ class SessionStorage extends Adapter implements SessionInterface
public function create($ownerType, $ownerId, $clientId, $clientRedirectUri = null)
{
$id = Capsule::table('oauth_sessions')
->insert([
->insertGetId([
'owner_type' => $ownerType,
'owner_id' => $ownerId,
'client_id' => $clientId