From 9f376a8d001e0e08a9c61ebc222cac63bdba77dc Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sat, 15 Apr 2017 12:08:55 +0300 Subject: [PATCH 1/3] 1.1.12-dev [skip ci] --- common/config/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/config/config.php b/common/config/config.php index 457027b..9958f9d 100644 --- a/common/config/config.php +++ b/common/config/config.php @@ -1,6 +1,6 @@ '1.1.11', + 'version' => '1.1.12-dev', 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 'components' => [ 'cache' => [ From bc3a4112eb8d3006291bc985d80d210b2c9d2350 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sat, 15 Apr 2017 23:01:13 +0300 Subject: [PATCH 2/3] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D0=B8=D0=BD=D0=B4=D0=B5=D0=BA=D1=81=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D1=82=D0=B0=D0=B1=D0=BB=D0=B8=D1=86=D1=8B=20oauth=5Fs?= =?UTF-8?q?essions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/components/OAuth2/Storage/SessionStorage.php | 2 +- ...70415_195802_oauth_sessions_owner_id_index.php | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 console/migrations/m170415_195802_oauth_sessions_owner_id_index.php diff --git a/api/components/OAuth2/Storage/SessionStorage.php b/api/components/OAuth2/Storage/SessionStorage.php index 8777f96..c056f9b 100644 --- a/api/components/OAuth2/Storage/SessionStorage.php +++ b/api/components/OAuth2/Storage/SessionStorage.php @@ -52,7 +52,7 @@ class SessionStorage extends AbstractStorage implements SessionInterface { ->andWhere([ 'client_id' => $clientId, 'owner_type' => $ownerType, - 'owner_id' => $ownerId, + 'owner_id' => (string)$ownerId, // Переводим в строку, чтобы работали индексы, т.к. поле varchar ])->scalar(); if ($sessionId === false) { diff --git a/console/migrations/m170415_195802_oauth_sessions_owner_id_index.php b/console/migrations/m170415_195802_oauth_sessions_owner_id_index.php new file mode 100644 index 0000000..08541e3 --- /dev/null +++ b/console/migrations/m170415_195802_oauth_sessions_owner_id_index.php @@ -0,0 +1,15 @@ +createIndex('owner_id', '{{%oauth_sessions}}', 'owner_id'); + } + + public function safeDown() { + $this->dropIndex('owner_id', '{{%oauth_sessions}}'); + } + +} From 7fc0bfc9c6e681d611230aade8dd36d0f8a28384 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sat, 15 Apr 2017 23:11:36 +0300 Subject: [PATCH 3/3] 1.1.12 [skip ci] --- common/config/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/config/config.php b/common/config/config.php index 9958f9d..629b7a5 100644 --- a/common/config/config.php +++ b/common/config/config.php @@ -1,6 +1,6 @@ '1.1.12-dev', + 'version' => '1.1.12', 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 'components' => [ 'cache' => [