login-captcha icon indicating copy to clipboard operation
login-captcha copied to clipboard

关于插件于系统功能有冲突通知

Open xiaoxuan6 opened this issue 6 years ago • 1 comments

使用了 ichynul/iframe-tabs 的扩展之后它会覆盖本扩展,如需使用 login-captcha 扩展,请将 iframe-tabs 扩展中的登录去掉,修改如下:

extensions->iframe-tabs->'force_login_in_top' => false,

xiaoxuan6 avatar Jul 19 '19 08:07 xiaoxuan6

那个是从laravel-admin配置里的admin.auth.controller读取登录控制器,修改一下配置

//....
 'auth' => [

       // 'controller' => App\Admin\Controllers\AuthController::class, //laravel-admin默认的登录控制器

       'controller' =>  Encore\James\JamesController::class,  //login-captcha的登录控制器

        'guard' => 'admin',

        'guards' => [
            'admin' => [
                'driver'   => 'session',
                'provider' => 'admin',
            ],
        ],

        'providers' => [
            'admin' => [
                'driver' => 'eloquent',
                'model'  => Encore\Admin\Auth\Database\Administrator::class,
            ],
        ],

        // Add "remember me" to login form
        'remember' => true,

        // Redirect to the specified URI when user is not authorized.
        'redirect_to' => 'auth/login',

        // The URIs that should be excluded from authorization.
        'excepts' => [
            'auth/login',
            'auth/logout',
        ],
    ],

//....

ichynul avatar Aug 13 '21 04:08 ichynul