fix
This commit is contained in:
@@ -216,11 +216,15 @@ private function testCards(){
|
|||||||
$res = ResetPassword::procResetPassword($inx);
|
$res = ResetPassword::procResetPassword($inx);
|
||||||
$this->logArray($res);
|
$this->logArray($res);
|
||||||
break;
|
break;
|
||||||
case 'createuser': $in["action"] = SAVVYEXT_USER_CREATE;
|
case 'createuser': $in["action"] = SAVVY_USER_CREATEACCOUNT;
|
||||||
$in["street1"] = $in["streetaddress"];
|
$in["street1"] = $in["streetaddress"];
|
||||||
$in["zipcode"] = $in["zip"];
|
$in["zipcode"] = $in["zip"];
|
||||||
$in["country"] = "US";
|
$in["country"] = "US";
|
||||||
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||||
|
log_message('critical', "in API-WAS CALLED user 009=>".$endpoint );
|
||||||
|
|
||||||
|
|
||||||
|
log_message('critical', "out API-WAS CALLED user 009=>".$endpoint );
|
||||||
break;
|
break;
|
||||||
case 'userlogin': $in["action"] = SAVVY_USER_LOGINACCOUNT;
|
case 'userlogin': $in["action"] = SAVVY_USER_LOGINACCOUNT;
|
||||||
log_message('critical', "API-WAS CALLED user 10-009=>".$endpoint );
|
log_message('critical', "API-WAS CALLED user 10-009=>".$endpoint );
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ class ResetPassword extends CoreServiceApi
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 200:
|
case 200:
|
||||||
$arr = array('mode' => '100', 'email' => $data['email'], 'resetPin'=>1001 );
|
$arr = array('mode' => '100', 'email' => $data['username'], 'resetPin'=>$data['reset_pin'] );
|
||||||
$data_json = json_encode($arr);
|
$data_json = json_encode($arr);
|
||||||
$res = self::NodeServiceApi('/user/reset-password', $data_json);
|
$res = self::NodeServiceApi('/user/reset-password', $data_json);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user