mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Протестирована логика подписи access_token и refresh_token, добавлены базовые скоупы, подчищен проект
This commit is contained in:
18
console/migrations/m160222_204006_add_init_scopes.php
Normal file
18
console/migrations/m160222_204006_add_init_scopes.php
Normal file
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
|
||||
use console\db\Migration;
|
||||
|
||||
class m160222_204006_add_init_scopes extends Migration {
|
||||
|
||||
public function safeUp() {
|
||||
$this->batchInsert('{{%oauth_scopes}}', ['id'], [
|
||||
['offline_access'],
|
||||
['minecraft_server_session'],
|
||||
]);
|
||||
}
|
||||
|
||||
public function safeDown() {
|
||||
$this->delete('{{%oauth_scopes}}');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user