mirror of
https://github.com/elyby/accounts.git
synced 2024-11-30 02:32:26 +05:30
Исправлено передение авторизатора для OAuth процесса
This commit is contained in:
parent
b00c4ae4fc
commit
f2e6df4022
@ -17,16 +17,12 @@ class OauthController extends Controller {
|
||||
public function behaviors() {
|
||||
return ArrayHelper::merge(parent::behaviors(), [
|
||||
'authenticator' => [
|
||||
'except' => ['validate', 'token'],
|
||||
'only' => ['complete'],
|
||||
],
|
||||
'access' => [
|
||||
'class' => AccessControl::class,
|
||||
'only' => ['complete'],
|
||||
'rules' => [
|
||||
[
|
||||
'actions' => ['validate', 'token'],
|
||||
'allow' => true,
|
||||
'roles' => ['?'],
|
||||
],
|
||||
[
|
||||
'class' => ActiveUserRule::class,
|
||||
'actions' => ['complete'],
|
||||
|
Loading…
Reference in New Issue
Block a user