Заменён метод генерации токена для oauth

Немного освобождены версии зависимостей
This commit is contained in:
ErickSkrauch 2016-08-27 00:47:14 +03:00
parent 27a9f9d3f8
commit d37a865e14
2 changed files with 4 additions and 4 deletions

View File

@ -11,7 +11,7 @@ class UuidAlgorithm extends DefaultAlgorithm implements KeyAlgorithmInterface {
* @inheritdoc * @inheritdoc
*/ */
public function generate($len = 40) : string { public function generate($len = 40) : string {
return Uuid::uuid5(Uuid::NAMESPACE_DNS, parent::generate($len))->toString(); return Uuid::uuid4()->toString();
} }
} }

View File

@ -14,14 +14,14 @@
}, },
"minimum-stability": "stable", "minimum-stability": "stable",
"require": { "require": {
"php": "~7.0.6", "php": "^7.0.6",
"yiisoft/yii2": "2.0.9", "yiisoft/yii2": "2.0.9",
"yiisoft/yii2-swiftmailer": "*", "yiisoft/yii2-swiftmailer": "*",
"ramsey/uuid": "~3.1", "ramsey/uuid": "^3.5.0",
"league/oauth2-server": "~4.1.5", "league/oauth2-server": "~4.1.5",
"yiisoft/yii2-redis": "~2.0.0", "yiisoft/yii2-redis": "~2.0.0",
"guzzlehttp/guzzle": "^6.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", "ely/yii2-tempmail-validator": "~1.0.0",
"emarref/jwt": "~1.0.2", "emarref/jwt": "~1.0.2",
"ely/amqp-controller": "^0.1.0" "ely/amqp-controller": "^0.1.0"