mirror of
https://github.com/elyby/accounts.git
synced 2024-12-23 13:50:06 +05:30
Fix E2E scopes response
This commit is contained in:
parent
119a0f8078
commit
05524a4e7c
@ -20,7 +20,7 @@ use yii\web\Response;
|
||||
final class MockDataResponse implements BootstrapInterface {
|
||||
|
||||
public function bootstrap($app): void {
|
||||
Event::on(Controller::class, Controller::EVENT_BEFORE_ACTION, Closure::fromCallable([$this, 'beforeAction']));
|
||||
Event::on(Controller::class, Controller::EVENT_BEFORE_ACTION, $this->beforeAction(...));
|
||||
}
|
||||
|
||||
private function beforeAction(ActionEvent $event): void {
|
||||
@ -108,7 +108,7 @@ final class MockDataResponse implements BootstrapInterface {
|
||||
'description' => "Some client's description",
|
||||
],
|
||||
'session' => [
|
||||
'scopes' => 'account_info minecraft_server_session',
|
||||
'scopes' => ['account_info', 'minecraft_server_session'],
|
||||
],
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user