我使用Google Authenticator添加laravel-admin
在新页面/auth/auth
的帖子中,始终重定向到/auth/login
,因为
"/auth/auth"不在admin.auth.excepts
中我如何在没有编辑的情况下解决此问题
/vendor/composer/encore/laravel-admin/src/middleware/authenticate.php
我试图通过将Authenticate.php
复制到app/http/Middleware
,但不起作用
来自
protected function shouldPassThrough($request)
{
$excepts = config('admin.auth.excepts', [
'auth/login',
'auth/logout',
]);
to
protected function shouldPassThrough($request)
{
$excepts = config('admin.auth.excepts', [
'auth/login',
'auth/logout',
'auth/auth'
]);
我想将/auth/login
发布到/auth/auth
(使用Google Authenticator(然后登录到Laravel-Admin
您可以只需在 app/config/admin.php
中添加consect code'auth' => [
.....
// The URIs that should be excluded from authorization.
'excepts' => [
'auth/login',
'auth/logout',
'auth/auth
],
.....
],