reset password

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-28 19:40:17 -04:00
parent 0e43eb8d8d
commit d19549a2cc
4 changed files with 10 additions and 0 deletions
+1
View File
@@ -149,6 +149,7 @@ define('WRENCHBOARD_BKO_END', 10999);
//**************************************************************
define('WRENCHBOARD_ACCOUNT_START', 11000);
define('WRENCHBOARD_PROFILE_RESETPASS', 11005);
define('WRENCHBOARD_ACCOUNT_TESTEMAIL', 11001);
define('WRENCHBOARD_ACCOUNT_PENDING', 11010);
+4
View File
@@ -79,12 +79,16 @@ class WrenchApi extends BaseController
'refferhx' => ['POST'],
'accounttypes' => ['POST'],
'jobmanagerlist' => ['POST'],
'profilepasschange' => ['POST'],
];
return $endpoints;
}
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
switch ($endpoint) {
case 'profilepasschange':
$in["action"] = WRENCHBOARD_PROFILE_RESETPASS;
break;
case 'addrecipient':
$in["action"] = WRENCHBOARD_ACCOUNT_ADD_RECIPEINT;
break;
+1
View File
@@ -56,6 +56,7 @@ define('WRENCHBOARD_BKO_END', 10999);
//**************************************************************
define('WRENCHBOARD_ACCOUNT_START', 11000);
define('WRENCHBOARD_PROFILE_RESETPASS', 11005);
define('WRENCHBOARD_ACCOUNT_TESTEMAIL', 11001);
define('WRENCHBOARD_ACCOUNT_PENDING', 11010);
+4
View File
@@ -58,6 +58,7 @@ $endpoints = array(
'refferhx' => array('POST'),
'accounttypes' => array('POST'),
'jobmanagerlist' => array('POST'),
'profilepasschange' => array('POST'),
);
$call_backend = true; // sometimes we need to overwite the call to the extenstion API
@@ -120,6 +121,9 @@ if ($_SERVER["REQUEST_METHOD"] == "GET") {
}
$in["loc"] = $_SERVER["REMOTE_ADDR"];
switch ($endpoint) {
case 'profilepasschange':
$in["action"] = WRENCHBOARD_PROFILE_RESETPASS;
break;
case 'addrecipient':
$in["action"] = WRENCHBOARD_ACCOUNT_ADD_RECIPEINT;
break;