mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-18 15:39:50 +00:00
Code clean up
This commit is contained in:
@@ -45,7 +45,7 @@ class AuthenticateTwoFactor
|
||||
return redirect()->guest('login');
|
||||
}
|
||||
|
||||
if (intval(Auth::user()->blocked) === 1) {
|
||||
if (intval(auth()->user()->blocked) === 1) {
|
||||
Auth::guard($guard)->logout();
|
||||
Session::flash('logoutMessage', trans('firefly.block_account_logout'));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user