mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix redirect loop.
This commit is contained in:
@@ -7,7 +7,7 @@ use Config;
|
||||
use Illuminate\Contracts\Auth\Guard;
|
||||
use Illuminate\Http\Request;
|
||||
use Preferences;
|
||||
|
||||
use Auth;
|
||||
/**
|
||||
* Class Authenticate
|
||||
*
|
||||
@@ -54,7 +54,8 @@ class Authenticate
|
||||
}
|
||||
|
||||
if (intval($this->auth->user()->blocked) == 1) {
|
||||
return redirect()->route('logout');
|
||||
Auth::logout();
|
||||
return redirect()->route('index');
|
||||
}
|
||||
|
||||
// if logged in, set user language:
|
||||
|
Reference in New Issue
Block a user