未登录跳转URL修改
This commit is contained in:
parent
fe1f0873a7
commit
304af923b1
@ -24,7 +24,7 @@ class Auth
|
|||||||
if ($action == 'user') {
|
if ($action == 'user') {
|
||||||
$session_user = get_config('app.session_user');
|
$session_user = get_config('app.session_user');
|
||||||
if (!Session::has($session_user)) {
|
if (!Session::has($session_user)) {
|
||||||
return $request->isAjax() ? to_assign(404, '请先登录') : redirect((string) url('/home/login/errorshow'));
|
return $request->isAjax() ? to_assign(404, '请先登录') : redirect((string) url('/home/login/index'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $next($request);
|
return $next($request);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user