promo account
This commit is contained in:
@@ -206,6 +206,7 @@ const LOGIN_APPLE = 990012;
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_DASHRECENT', 11206);
|
||||
define('WRENCHBOARD_ACCOUNT_QRLOGIN', 11022);
|
||||
const WRENCHBOARD_PROMO_LOGIN = 11023;
|
||||
define('WRENCHBOARD_ACCOUNT_CREATEACC', 11020);
|
||||
define('WRENCHBOARD_ACCOUNT_AUXSTART', 11023);
|
||||
define('WRENCHBOARD_ACCOUNT_AUXLOGIN', 11024);
|
||||
|
||||
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user