mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-30 12:43:57 -06:00
Force blocked users to logout.
This commit is contained in:
parent
649eb65bb1
commit
eddd3e508f
@ -29,9 +29,12 @@ class Authenticate
|
||||
if ($request->ajax()) {
|
||||
return response('Unauthorized.', 401);
|
||||
} else {
|
||||
|
||||
return redirect()->guest('login');
|
||||
}
|
||||
} else {
|
||||
if(intval(Auth::user()->blocked) === 1) {
|
||||
return redirect()->action('logout');
|
||||
}
|
||||
}
|
||||
|
||||
return $next($request);
|
||||
|
Loading…
Reference in New Issue
Block a user