Files
WrenchBoradWeb/www-api/app/Controllers/WrenchAuth.php
T
CHIEFSOFT\ameye 3abd79d72e get posted values
2024-07-05 08:06:08 -04:00

30 lines
868 B
PHP

<?php
namespace App\Controllers;
class WrenchAuth extends BaseController
{
public function userLogin(){
// $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;
}
$endpoint = "USER_SESSION-";
$out=[];
// $out = $this->getCache($endpoint); // try find in cache
// if ( empty($out) || !is_array($out)){
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
$this->saveCache($endpoint,$out,15000);
// }
return $this->summaryReturnData($in,$out); //json_encode( $final_out );
}
}
// WrenchAuth::userLogin