Complete treset password

This commit is contained in:
Olu Amey
2023-05-03 06:56:07 -04:00
parent d681b90fb2
commit e56a3c7da4
3 changed files with 13 additions and 0 deletions
+1
View File
@@ -69,6 +69,7 @@ $routes->post('/en/wrench/api/v1/paymenthx', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/purchasehx', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/stepresetpass', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/starttopup', 'WrenchApi::apigate');
+6
View File
@@ -38,6 +38,7 @@ class WrenchApi extends BaseController
'createmobileuser' => ['POST'],
'completemobileuser' => ['POST'],
'startresetpasword' => ['POST'],
'stepresetpass' => ['POST'],
'userlogin' => ['POST'],
'startjoblist' => ['POST'],
'dashdata' => ['POST'],
@@ -87,6 +88,11 @@ class WrenchApi extends BaseController
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
switch ($endpoint) {
case 'stepresetpass':
if($in['step']==300){
$in["action"] = WRENCHBOARD_COMPLETE_PASSWORDRESET;
}
break;
case 'starttopup':
$in["action"] = WRENCHBOARD_ACCOUNT_PREPARE_TOPUP;
break;
+6
View File
@@ -17,6 +17,7 @@ $endpoints = array(
'createmobileuser' => array('POST'),
'completemobileuser' => array('POST'),
'startresetpasword' => array('POST'),
'stepresetpass' => array('POST'),
'userlogin' => array('POST'),
'startjoblist' => array('POST'),
'dashdata' => array('POST'),
@@ -122,6 +123,11 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
}
$in["loc"] = $_SERVER["REMOTE_ADDR"];
switch ($endpoint) {
case 'stepresetpass':
if($in['step']==300){
$in["action"] = WRENCHBOARD_COMPLETE_PASSWORDRESET;
}
break;
case 'starttopup':
$in["action"] = WRENCHBOARD_ACCOUNT_PREPARE_TOPUP;
break;