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:
parent
c5f4b31023
commit
250f0bf2e8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user