From d37a865e14f922ac7f9b031aa39e57ec1b2ad958 Mon Sep 17 00:00:00 2001 From: ErickSkrauch Date: Sat, 27 Aug 2016 00:47:14 +0300 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=BD=D1=91=D0=BD=20?= =?UTF-8?q?=D0=BC=D0=B5=D1=82=D0=BE=D0=B4=20=D0=B3=D0=B5=D0=BD=D0=B5=D1=80?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8=20=D1=82=D0=BE=D0=BA=D0=B5=D0=BD=D0=B0?= =?UTF-8?q?=20=D0=B4=D0=BB=D1=8F=20oauth=20=D0=9D=D0=B5=D0=BC=D0=BD=D0=BE?= =?UTF-8?q?=D0=B3=D0=BE=20=D0=BE=D1=81=D0=B2=D0=BE=D0=B1=D0=BE=D0=B6=D0=B4?= =?UTF-8?q?=D0=B5=D0=BD=D1=8B=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D0=B8=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B2=D0=B8=D1=81=D0=B8=D0=BC=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/components/oauth/Util/KeyAlgorithm/UuidAlgorithm.php | 2 +- composer.json | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/common/components/oauth/Util/KeyAlgorithm/UuidAlgorithm.php b/common/components/oauth/Util/KeyAlgorithm/UuidAlgorithm.php index 09f96e7..9fd5c72 100644 --- a/common/components/oauth/Util/KeyAlgorithm/UuidAlgorithm.php +++ b/common/components/oauth/Util/KeyAlgorithm/UuidAlgorithm.php @@ -11,7 +11,7 @@ class UuidAlgorithm extends DefaultAlgorithm implements KeyAlgorithmInterface { * @inheritdoc */ public function generate($len = 40) : string { - return Uuid::uuid5(Uuid::NAMESPACE_DNS, parent::generate($len))->toString(); + return Uuid::uuid4()->toString(); } } diff --git a/composer.json b/composer.json index 5af4fdb..6d4f755 100644 --- a/composer.json +++ b/composer.json @@ -14,14 +14,14 @@ }, "minimum-stability": "stable", "require": { - "php": "~7.0.6", + "php": "^7.0.6", "yiisoft/yii2": "2.0.9", "yiisoft/yii2-swiftmailer": "*", - "ramsey/uuid": "~3.1", + "ramsey/uuid": "^3.5.0", "league/oauth2-server": "~4.1.5", "yiisoft/yii2-redis": "~2.0.0", "guzzlehttp/guzzle": "^6.0.0", - "php-amqplib/php-amqplib": "~2.6.2", + "php-amqplib/php-amqplib": "^2.6.2", "ely/yii2-tempmail-validator": "~1.0.0", "emarref/jwt": "~1.0.2", "ely/amqp-controller": "^0.1.0"