salespdid for autologin : ps
This commit is contained in:
parent
e30e8ae7a7
commit
6502596f28
@ -1806,6 +1806,7 @@ public function filterSalesPDList_post() {
|
||||
}
|
||||
|
||||
public function toMakeCetNewSalesPd($array){
|
||||
|
||||
// print_r($array['type']);die;
|
||||
// header("Location: https://demo.pdgenie.com/salespdpwa/#/sales-pd-list/list-pd");
|
||||
log_message('ERROR','## C) Inside toMakeCetNewSalesPd Fns');
|
||||
@ -1816,6 +1817,7 @@ public function filterSalesPDList_post() {
|
||||
$usersemailid = $array['userid'];
|
||||
$loanamount = $array['loanamount'];
|
||||
$createdby = null;
|
||||
$salepdid = null;
|
||||
// $reponse_arr = json_decode(,true);
|
||||
// print_r(APPPATH."controller/newSalesPD.json");die();
|
||||
$lenderid = (ENVIRONMENT == 'production' ? 7 : 35);
|
||||
@ -1873,6 +1875,7 @@ public function filterSalesPDList_post() {
|
||||
/*************Inserting Here ******************/
|
||||
$records = array("sales_pd_sno"=> $salepd_serial_no,"rand_string"=>$randomString,"lender_id"=>$lenderid, "product_id"=>$product_id, "sales_pd_type"=>$sales_pd_type, "applicant_id"=>$applicantid, "applicant_name"=>$applicantname, "createdby"=>$createdby, "isactive"=>1);
|
||||
$id = $this->Sales_PD_Model->saveRecords($records,SALES_PD_DATA);
|
||||
$salepdid = $id;
|
||||
// $id = 775; // 772,773,777,778
|
||||
log_message('ERROR','## 2) available sales pdid : '.$id);
|
||||
if (!empty($id)) {
|
||||
@ -1981,19 +1984,22 @@ public function filterSalesPDList_post() {
|
||||
if(ENVIRONMENT == 'production'){
|
||||
$auth_user_id = "MwiseSales@yahoo.com";
|
||||
$auth_password = "sine1234";
|
||||
$token = base64_encode($auth_user_id."#".$auth_password."#".$user_id."#".$role_id."#".$current_date."#".$usersemailid);
|
||||
$token = base64_encode($auth_user_id."#".$auth_password."#".$user_id."#".$role_id."#".$current_date."#".$usersemailid."#".$salepdid);
|
||||
// echo $token;
|
||||
// log_message('ERROR','## 7) Finally, '.$data['msg']);
|
||||
$redirect_uri = "https://pdgenie.com/sales/#/auto?token=".$token; // For Production
|
||||
}else{
|
||||
$auth_user_id = "MwiseSales@yahoo.com";
|
||||
$auth_password = "sine1234";
|
||||
$token = base64_encode($auth_user_id."#".$auth_password."#".$user_id."#".$role_id."#".$current_date."#".$usersemailid);
|
||||
$token = base64_encode($auth_user_id."#".$auth_password."#".$user_id."#".$role_id."#".$current_date."#".$usersemailid."#".$salepdid);
|
||||
// echo $token;
|
||||
// $token = base64_encode('mwisesales1@sine.com#test1234'."#".$user_id."#".$role_id);
|
||||
// $redirect_uri = "http://localhost:4200/#/auto?token=".$token; // For Localhost
|
||||
$redirect_uri ="https://demo.pdgenie.com/salespdpwa/#/auto?token=".$token; // For Testing
|
||||
}
|
||||
// echo $auth_user_id."#".$auth_password."#".$user_id."#".$role_id."#".$current_date."#".$usersemailid."#".$salepdid;
|
||||
// MwiseSales@yahoo.com#sine1234#293#19#06/07/2023 16:02:57#mwisesales1@sine.com#904
|
||||
// https://demo.pdgenie.com/salespdpwa/#/auto?token=TXdpc2VTYWxlc0B5YWhvby5jb20jc2luZTEyMzQjMjkzIzE5IzA2LzA3LzIwMjMgMTY6MDI6NTcjbXdpc2VzYWxlczFAc2luZS5jb20jOTA0
|
||||
// echo $redirect_uri;
|
||||
// die();
|
||||
header("Location: ".$redirect_uri);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user