From 778e862b9701feb8b9762184087efc2109e544b3 Mon Sep 17 00:00:00 2001 From: xinatorus Date: Sun, 17 May 2020 14:21:11 +0200 Subject: [PATCH] auth api fix --- app/api/AuthApi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/api/AuthApi.php b/app/api/AuthApi.php index a9d6101..a73bdb3 100644 --- a/app/api/AuthApi.php +++ b/app/api/AuthApi.php @@ -1,7 +1,7 @@ getToken($this->input->username,$this->input->password); + $token = (new AuthManager)->getToken($this->input['username'],$this->input['password']); if (!$token) { throw new Exception("Auth failed", 401); }