mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-18 02:03:40 +00:00
Throw errors instead of abort()
This commit is contained in:
@@ -4,6 +4,7 @@ declare(strict_types = 1);
|
||||
namespace FireflyIII\Http\Controllers\Auth;
|
||||
|
||||
use Auth;
|
||||
use FireflyIII\Exceptions\FireflyException;
|
||||
use FireflyIII\Http\Controllers\Controller;
|
||||
use FireflyIII\Models\Role;
|
||||
use FireflyIII\User;
|
||||
@@ -151,7 +152,7 @@ class AuthController extends Controller
|
||||
|
||||
return redirect($this->redirectPath());
|
||||
}
|
||||
abort(500, 'Not a user!');
|
||||
throw new FireflyException('The authenticated user object is invalid.');
|
||||
|
||||
|
||||
return redirect($this->redirectPath());
|
||||
|
Reference in New Issue
Block a user