Code reverted To get params salt_key : ps

This commit is contained in:
VE10-Sanjeev 2023-07-04 10:38:01 +05:30
parent 8efeb268cc
commit 65978b4cd8

View File

@ -1759,11 +1759,15 @@ public function filterSalesPDList_post() {
* TO Trigger New Sales PD and Inserting the applicant on general Form also. * TO Trigger New Sales PD and Inserting the applicant on general Form also.
****** ******/ ****** ******/
public function cetNewSalesPd_get(){ public function cetNewSalesPd_get(){
$saltkey = ''; //for demo purpose only
// $saltkey = $this->get('saltkey'); $saltkey = $this->get('saltkey');
foreach (getallheaders() as $name => $value) {
if($name == 'Token'){ $saltkey = $value; } // postman header
} //$saltkey = '';
// foreach (getallheaders() as $name => $value) {
// if($name == 'Token'){ $saltkey = $value; }
// }
// $hash = password_hash("Smc@123$", PASSWORD_DEFAULT); // $hash = password_hash("Smc@123$", PASSWORD_DEFAULT);
// Print the generated hash // Print the generated hash
// echo "Generated hash: ".$hash;die; // echo "Generated hash: ".$hash;die;