From 65978b4cd89a7beca44c6e48f98ad1825f6a2e2a Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Tue, 4 Jul 2023 10:38:01 +0530 Subject: [PATCH] Code reverted To get params salt_key : ps --- .../controllers/Sales_PD_Controller.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/api/application/controllers/Sales_PD_Controller.php b/api/application/controllers/Sales_PD_Controller.php index 8f898947..fde3062c 100644 --- a/api/application/controllers/Sales_PD_Controller.php +++ b/api/application/controllers/Sales_PD_Controller.php @@ -1759,11 +1759,15 @@ public function filterSalesPDList_post() { * TO Trigger New Sales PD and Inserting the applicant on general Form also. ****** ******/ public function cetNewSalesPd_get(){ - $saltkey = ''; - // $saltkey = $this->get('saltkey'); - foreach (getallheaders() as $name => $value) { - if($name == 'Token'){ $saltkey = $value; } - } + //for demo purpose only + $saltkey = $this->get('saltkey'); + + // postman header + //$saltkey = ''; + // foreach (getallheaders() as $name => $value) { + // if($name == 'Token'){ $saltkey = $value; } + // } + // $hash = password_hash("Smc@123$", PASSWORD_DEFAULT); // Print the generated hash // echo "Generated hash: ".$hash;die;