From 3abd79d72efad8ba573d0206663508db9ccf84bc Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 5 Jul 2024 08:06:08 -0400 Subject: [PATCH] get posted values --- www-api/app/Controllers/WrenchAuth.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www-api/app/Controllers/WrenchAuth.php b/www-api/app/Controllers/WrenchAuth.php index 275f34ab..82e862c5 100644 --- a/www-api/app/Controllers/WrenchAuth.php +++ b/www-api/app/Controllers/WrenchAuth.php @@ -6,8 +6,10 @@ class WrenchAuth extends BaseController { public function userLogin(){ - $in = $this->request->getPostGet(); - + // $in = $this->request->getPostGet(); + $raw_json = file_get_contents('php://input'); + $in = json_decode($raw_json, true); + $in["action"] = WRENCHBOARD_ACCOUNT_LOGIN; if (!isset($in["login_mode"])){ $in["login_mode"] = MOBILE_LOGIN;