This commit is contained in:
qronald
2017-05-22 13:27:38 -04:00
parent 0242efa6b0
commit 66dcf0432c
3 changed files with 13 additions and 6 deletions

View File

@@ -29,6 +29,14 @@ class Designer extends Controller
$client = $this->getClientCredentials();
if (isset($httpData->tracker_designer) && $httpData->tracker_designer == 1) {
try {
$response = \ProcessMaker\BusinessModel\Light\Tracker::authentication($_SESSION['CASE'], $_SESSION['PIN']);
} catch (\Exception $e) {
G::header('Location: /errors/error403.php');
die();
}
$httpData->prj_uid = $response['process'];
$httpData->app_uid = $response['app_uid'];
$client["tracker_designer"] = 1;
}