fix
This commit is contained in:
@@ -216,11 +216,15 @@ private function testCards(){
|
||||
$res = ResetPassword::procResetPassword($inx);
|
||||
$this->logArray($res);
|
||||
break;
|
||||
case 'createuser': $in["action"] = SAVVYEXT_USER_CREATE;
|
||||
case 'createuser': $in["action"] = SAVVY_USER_CREATEACCOUNT;
|
||||
$in["street1"] = $in["streetaddress"];
|
||||
$in["zipcode"] = $in["zip"];
|
||||
$in["country"] = "US";
|
||||
$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;
|
||||
case 'userlogin': $in["action"] = SAVVY_USER_LOGINACCOUNT;
|
||||
log_message('critical', "API-WAS CALLED user 10-009=>".$endpoint );
|
||||
|
||||
@@ -25,7 +25,7 @@ class ResetPassword extends CoreServiceApi
|
||||
break;
|
||||
|
||||
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);
|
||||
$res = self::NodeServiceApi('/user/reset-password', $data_json);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user