Yii2 framework facebook and google login using authclient not working

后端 未结 1 802
情书的邮戳
情书的邮戳 2021-01-03 09:45

i have followed the instruction here http://www.yiiframework.com/doc-2.0/yii-authclient-authaction.html.. and it\'s not working for me.. i am using yii2 authclient for soc

相关标签:
1条回答
  • 2021-01-03 10:44

    Make sure that in your behaviours() you allow access to the action "auth" in your SiteController.php

    So your rules should look something like:

    'rules' => [
        [
            'actions' => [ 'login', 'error', 'auth' ],
            'allow'   => true,
        ],
        [
            'actions' => [ 'logout', 'index' ],
            'allow'   => true,
            'roles'   => [ '@' ],
        ],
    ],
    
    0 讨论(0)
提交回复
热议问题