diff --git a/api/index.php b/api/index.php index 4f4d0702..190c528b 100644 --- a/api/index.php +++ b/api/index.php @@ -31,7 +31,7 @@ if(!empty($user->info)) { } if (!isset($data->token) || !password_verify( - $training->getDatabaseData()->api_token . $data->time . $user->info['id'], + $training->getDatabaseData()['api_token'] . $data->time . $user->info['id'], $data->token )) { http_response_code(401);