1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Clean up logout requests

This commit is contained in:
David Bomba 2022-06-17 14:31:53 +10:00
parent c5f4b31023
commit 250f0bf2e8

View File

@ -60,7 +60,7 @@ class LogoutController extends BaseController
public function index(Request $request)
{
$ct = CompanyToken::with('company.tokens')
->whereRaw('BINARY `token`= ?', [$request->header('X-API-TOKEN')])
->where('token', $request->header('X-API-TOKEN'))
->first();
$ct->company