From 6ce190d33bca1604c33a5ce4491fc07c2f969c1d Mon Sep 17 00:00:00 2001 From: Thomas Vranken Date: Sat, 6 Sep 2014 17:53:02 +0200 Subject: [PATCH] Session ID returned correctly Session ID was not returned correctly after creating a session. --- examples/relational/Storage/SessionStorage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/relational/Storage/SessionStorage.php b/examples/relational/Storage/SessionStorage.php index 9c02b18f..37e1759a 100644 --- a/examples/relational/Storage/SessionStorage.php +++ b/examples/relational/Storage/SessionStorage.php @@ -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