我使用google authenticator添加了laravel-admin
在post到新页面/auth/auth时,总是被重定向到/auth/login,因为
“/auth/auth”不在admin.auth.excepts中
如何在不进行编辑的情况下解决此问题
/vendor/composer/encore/laravel-admin/src/Middleware/Authenticate.php
我曾尝试通过将Authenticate.php复制到app/http/Middleware来覆盖Authenticate.php,但不起作用
从…
protected function shouldPassThrough($request)
{
$excepts = config('admin.auth.excepts', [
'auth/login',
'auth/logout',
]);至
protected function shouldPassThrough($request)
{
$excepts = config('admin.auth.excepts', [
'auth/login',
'auth/logout',
'auth/auth'
]);我想将/auth/login发布到/auth/auth (使用谷歌验证器),然后登录到laravel-admin
发布于 2019-05-10 15:28:42
您可以简单地在app/config/admin.php中添加以下代码
'auth' => [
.....
// The URIs that should be excluded from authorization.
'excepts' => [
'auth/login',
'auth/logout',
'auth/auth
],
.....
],https://stackoverflow.com/questions/56072545
复制相似问题