mirror of
https://github.com/elyby/accounts.git
synced 2024-12-26 23:20:18 +05:30
Добавлен oauth2 пермишен на запрос E-mail адреса пользователя
This commit is contained in:
parent
6efbbb7098
commit
71d9511d8e
@ -1,7 +1,6 @@
|
||||
<?php
|
||||
namespace common\models;
|
||||
|
||||
use Yii;
|
||||
use yii\db\ActiveRecord;
|
||||
|
||||
/**
|
||||
@ -12,6 +11,7 @@ class OauthScope extends ActiveRecord {
|
||||
|
||||
const OFFLINE_ACCESS = 'offline_access';
|
||||
const MINECRAFT_SERVER_SESSION = 'minecraft_server_session';
|
||||
const ACCOUNT_EMAIL = 'account_email';
|
||||
|
||||
public static function tableName() {
|
||||
return '{{%oauth_scopes}}';
|
||||
|
@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
use console\db\Migration;
|
||||
|
||||
class m160803_185857_permission_email_access extends Migration {
|
||||
|
||||
public function safeUp() {
|
||||
$this->insert('{{%oauth_scopes}}', ['id' => 'account_email']);
|
||||
}
|
||||
|
||||
public function safeDown() {
|
||||
$this->delete('{{%oauth_scopes}}', ['id' => 'account_email']);
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user