Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Let's add some authentication before I am drowned in reports.
James Coleb33b22e0b3bb
diff --git a/app/Http/Controllers/Profile/OAuthController.php b/app/Http/Controllers/Profile/OAuthController.phpindex fb223f8164..bc0190f98b 100644--- a/app/Http/Controllers/Profile/OAuthController.php+++ b/app/Http/Controllers/Profile/OAuthController.php@@ -115,6 +115,9 @@ final class OAuthController extends Controllerpublic function listClients(): JsonResponse{+ if(!auth()->check()) {+ return response()->json([]);+ }Log::debug('Now in listClients()');// Retrieving all the OAuth app clients that belong to the user...$clients = auth()->user()->oauthApps()->where('revoked', false)->get();diff --git a/routes/web.php b/routes/web.phpindex be828f9756..2ec4e8e025 100644--- a/routes/web.php+++ b/routes/web.php@@ -34,6 +34,7 @@ Route::group(['as' => 'passport.','prefix' => 'oauth',+ 'middleware' => ['user-full-auth']// 'namespace' => 'FireflyIII\Http\Controllers\OAuth',],function (): void {