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