diff --git a/common/models/Account.php b/common/models/Account.php index be4c282..944430a 100644 --- a/common/models/Account.php +++ b/common/models/Account.php @@ -140,6 +140,8 @@ class Account extends ActiveRecord { * @param OauthClient $client * @param \League\OAuth2\Server\Entity\ScopeEntity[] $scopes * + * TODO: этому методу здесь не место. + * * @return bool */ public function canAutoApprove(OauthClient $client, array $scopes = []) { @@ -159,23 +161,6 @@ class Account extends ActiveRecord { return false; } - /** - * @inheritdoc - */ - protected static function getSecretKey() { - return Yii::$app->params['jwtSecret']; - } - - /** - * @inheritdoc - */ - protected static function getHeaderToken() { - return [ - 'iss' => Yii::$app->request->hostInfo, - 'aud' => Yii::$app->request->hostInfo, - ]; - } - /** * Выполняет проверку, принадлежит ли этому нику аккаунт у Mojang * @return bool @@ -186,13 +171,4 @@ class Account extends ActiveRecord { ->exists(); } - /** - * TODO: нужно создать PR в UserTrait репо, чтобы этот метод сделали абстрактным - * - * @return int - */ - public function getId() { - return $this->getPrimaryKey(); - } - }