mirror of
https://github.com/elyby/accounts.git
synced 2024-11-30 02:32:26 +05:30
Обновлена версия Yii2, удалён костыль для учёта http/https
This commit is contained in:
parent
d7b193f2e7
commit
667c034aca
@ -24,7 +24,7 @@ return [
|
||||
'/mojang/profiles/<uuid>/names' => 'mojang/api/usernames-by-uuid',
|
||||
'POST /mojang/profiles' => 'mojang/api/uuids-by-usernames',
|
||||
|
||||
"<protocol:http|https>://{$params['authserverHost']}/mojang/api/users/profiles/minecraft/<username>" => 'mojang/api/uuid-by-username',
|
||||
"<protocol:http|https>://{$params['authserverHost']}/mojang/api/user/profiles/<uuid>/names" => 'mojang/api/usernames-by-uuid',
|
||||
"POST <protocol:http|https>://{$params['authserverHost']}/mojang/api/profiles/minecraft" => 'mojang/api/uuids-by-usernames',
|
||||
"//{$params['authserverHost']}/mojang/api/users/profiles/minecraft/<username>" => 'mojang/api/uuid-by-username',
|
||||
"//{$params['authserverHost']}/mojang/api/user/profiles/<uuid>/names" => 'mojang/api/usernames-by-uuid',
|
||||
"POST //{$params['authserverHost']}/mojang/api/profiles/minecraft" => 'mojang/api/uuids-by-usernames',
|
||||
];
|
||||
|
@ -39,7 +39,7 @@ class Module extends \yii\base\Module implements BootstrapInterface {
|
||||
*/
|
||||
public function bootstrap($app) {
|
||||
$app->getUrlManager()->addRules([
|
||||
"<protocol:http|https>://$this->host/$this->id/auth/<action>" => "$this->id/authentication/<action>",
|
||||
"//$this->host/$this->id/auth/<action>" => "$this->id/authentication/<action>",
|
||||
], false);
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
"minimum-stability": "stable",
|
||||
"require": {
|
||||
"php": "^7.1",
|
||||
"yiisoft/yii2": "2.0.10",
|
||||
"yiisoft/yii2": "2.0.11.2",
|
||||
"yiisoft/yii2-swiftmailer": "*",
|
||||
"ramsey/uuid": "^3.5.0",
|
||||
"league/oauth2-server": "dev-improvements#fbaa9b0bd3d8050235ba7dde90f731764122bc20",
|
||||
|
Loading…
Reference in New Issue
Block a user