1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Correzioni per retro-compatibilità API

This commit is contained in:
Dasc3er
2021-02-19 16:15:50 +01:00
parent 2f2e59e325
commit c1b3b1f118
4 changed files with 26 additions and 9 deletions

View File

@@ -50,7 +50,10 @@ class InfoController extends Controller
public function user()
{
$token = auth()->getToken();
$user = auth()->user();
$tokens = $user->getApiTokens();
$token = $tokens[0]['token'];
$api = BASEURL.'/api/?token='.$token;