passwoed check
This commit is contained in:
@@ -37,10 +37,11 @@ class Employers extends BaseController
|
||||
$query = $this->db->query($findEmp);
|
||||
$row = $query->getResult('array');
|
||||
$employer_uid = $row[0]['employer_uid'];
|
||||
$application_uid = $row[0]['application_uid'];
|
||||
|
||||
if ($row[0]['uid']!='' && $application_uid !='' ){
|
||||
|
||||
|
||||
|
||||
if ($row[0]['uid']!='' ){
|
||||
log_message('error', "Call API---=>");
|
||||
$api_data = $row[0];
|
||||
$api_data["signatory_password"] = $this->randomPassword(); // "1000011";
|
||||
@@ -50,16 +51,20 @@ class Employers extends BaseController
|
||||
$api_data["processing_bank_name"] = "Processing Bank";
|
||||
$api_data["processing_bank_email"] = "processingbank@email.com";
|
||||
|
||||
$udata = [
|
||||
'employer_uid' => $employer_uid,
|
||||
'password' => md5($api_data["signatory_password"]),
|
||||
'username' => $api_data["signatory_email"]
|
||||
];
|
||||
$addedData = $this->insert_db('employer_checks',$udata);
|
||||
|
||||
$checkData = $this->APIcall("POST", "http://10.10.10.48:6332/api/verify/employer", json_encode($api_data));
|
||||
}else{
|
||||
log_message('error', "Not found API---=>");
|
||||
}
|
||||
|
||||
$udata = [
|
||||
'employer_uid' => $employer_uid
|
||||
];
|
||||
|
||||
$addedData = $this->insert_db('employer_checks',$udata);
|
||||
|
||||
//$addedData =[];
|
||||
|
||||
if( $addedData["uid"] ==''){
|
||||
|
||||
@@ -8,12 +8,15 @@ class Employment extends BaseController
|
||||
{
|
||||
public function login() :ResponseInterface
|
||||
{
|
||||
$data = $this->request->getPost();
|
||||
|
||||
$row =[];
|
||||
|
||||
$data = [
|
||||
'call_return' => '100',
|
||||
'verify_uid'=>'ce00b4c9-7a46-4176-aa5a-0f6d83740dbc',
|
||||
'dev_status'=>'FAKE_RESULT_NOT_IMPLIMENTED_FOR_REAL',
|
||||
'records' => $row
|
||||
'records' => $data
|
||||
];
|
||||
return $this->respond($data, 200);
|
||||
}
|
||||
@@ -37,5 +40,5 @@ class Employment extends BaseController
|
||||
];
|
||||
return $this->respond($data, 200);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user