mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-06-30 11:40:58 -07:00
Let's add some authentication before I am drowned in reports.
This commit is contained in:
@@ -115,6 +115,9 @@ final class OAuthController extends Controller
|
||||
|
||||
public 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();
|
||||
|
||||
Reference in New Issue
Block a user