mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Force blocked users to logout.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user