promo account

This commit is contained in:
CHIEFSOFT\ameye
2024-09-19 12:36:26 -04:00
parent b1533fc507
commit 8c38e9443f
5 changed files with 29 additions and 0 deletions
+13
View File
@@ -13,7 +13,20 @@ class WrenchAuth extends BaseController
$raw_json = file_get_contents('php://input');
$in = json_decode($raw_json, true);
$out=[];
$in["action"] = WRENCHBOARD_PROMO_LOGIN;
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = $ret;
log_message('critical', "***** ***** WrenchAuth::userLogin Ret = ".$ret );
if ( $out['internal_return'] == 100 ){
$endpoint = "USER_SESSION-". str_pad($out["member_id"], 12, "0", STR_PAD_LEFT) ."-";
log_message('critical', "***** ***** WrenchAuth::userLogin USER_SESSION = ".$endpoint );
$this->saveCache($endpoint,$out,15000);
}else
{
// log_message('critical', "***** ***** WrenchAuth::userLogin USER_SESSION = ".$fail_endpoint );
// $this->saveCache($fail_endpoint,$outF,15000);
}
return $this->respond( $this->summaryReturnData($in,$out), 200);
}
public function userLogin(){