Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Updated the routes.
James Cole2d3f3f0fdee4
diff --git a/app/Http/Kernel.php b/app/Http/Kernel.phpindex 2b00ee5652..61887f68b6 100644--- a/app/Http/Kernel.php+++ b/app/Http/Kernel.php@@ -92,6 +92,19 @@ class Kernel extends HttpKernelAuthenticateTwoFactor::class,IsNotConfirmed::class,],++ // MUST be logged in+ // don't care about 2fa+ // don't care about confirmation.+ 'user-simple-auth' => [+ EncryptCookies::class,+ AddQueuedCookiesToResponse::class,+ StartSession::class,+ ShareErrorsFromSession::class,+ VerifyCsrfToken::class,+ Authenticate::class,+ ],+// MUST be logged in// MUST have 2fa// MUST be confirmed.diff --git a/app/Http/routes.php b/app/Http/routes.phpindex 881ef01056..707e9d1664 100644--- a/app/Http/routes.php+++ b/app/Http/routes.php@@ -2,11 +2,6 @@declare(strict_types = 1);-//Route::get('/logout', 'Auth\AuthController@logout');-//Route::get('/error', 'HomeController@displayError');-//Route::get('/logout', ['uses' => 'Auth\AuthController@logout', 'as' => 'logout']);-//Route::get('/flush', ['uses' => 'HomeController@flush']);-/*** These routes only work when the user is NOT logged in.@@ -29,11 +24,24 @@ Route::group(Route::post('/password/email', 'Auth\PasswordController@sendResetLinkEmail');Route::post('/password/reset', 'Auth\PasswordController@reset');++}+);++/**+ * For other routes, it is only relevant that the user is authenticated.+ */++Route::group(+ ['middleware' => 'user-simple-auth'], function () {+ Route::get('/error', 'HomeController@displayError');+ Route::get('/logout', ['uses' => 'Auth\AuthController@logout', 'as' => 'logout']);+ Route::get('/flush', ['uses' => 'HomeController@flush']);});/**- * For the two factor routes, the user must be logged in, but not 2FA. Account confirmation does not matter here.+ * For the two factor routes, the user must be logged in, but NOT 2FA. Account confirmation does not matter here.*/Route::group(['middleware' => 'user-logged-in-no-2fa'], function () {