From 8efeb268cc6c6cdb80895345b0a5c4bb6c0d64e2 Mon Sep 17 00:00:00 2001 From: VE10-Sanjeev Date: Mon, 3 Jul 2023 20:05:22 +0530 Subject: [PATCH] Saltkey Added In header : ps --- api/application/controllers/Sales_PD_Controller.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/api/application/controllers/Sales_PD_Controller.php b/api/application/controllers/Sales_PD_Controller.php index 5e4a7f38..8f898947 100644 --- a/api/application/controllers/Sales_PD_Controller.php +++ b/api/application/controllers/Sales_PD_Controller.php @@ -1759,7 +1759,11 @@ public function filterSalesPDList_post() { * TO Trigger New Sales PD and Inserting the applicant on general Form also. ****** ******/ public function cetNewSalesPd_get(){ - $saltkey = $this->get('saltkey'); + $saltkey = ''; + // $saltkey = $this->get('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;