This commit is contained in:
dev-chiefworks
2022-04-20 23:25:59 -04:00
parent 3daba09db2
commit 72dca21238
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -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 );
+1 -1
View File
@@ -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;