53 lines
1.2 KiB
PHP
53 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Controllers;
|
|
|
|
use CodeIgniter\HTTP\ResponseInterface;
|
|
|
|
class Employment extends BaseController
|
|
{
|
|
public function login() :ResponseInterface
|
|
{
|
|
$data = $this->request->getPost();
|
|
$otp_ready = false;
|
|
$verify_uid = '';
|
|
|
|
$row =[];
|
|
if ( $data['application_uid'] !='' && $data['username'] && $data['password']){
|
|
$verify_uid = 'ce00b4c9-7a46-4176-aa5a-0f6d83740dbc';
|
|
|
|
}else{
|
|
|
|
}
|
|
|
|
$data = [
|
|
'call_return' => '100',
|
|
'verify_uid'=> $verify_uid,
|
|
'dev_status'=>'FAKE_RESULT_NOT_IMPLIMENTED_FOR_REAL',
|
|
'otp_ready' => $otp_ready,
|
|
'records' => $data
|
|
];
|
|
return $this->respond($data, 200);
|
|
}
|
|
|
|
public function verifyOTP() :ResponseInterface
|
|
{
|
|
$row =[];
|
|
$data = [
|
|
'call_return' => '100',
|
|
'records' => $row
|
|
];
|
|
return $this->respond($data, 200);
|
|
}
|
|
|
|
public function loadApplication() :ResponseInterface
|
|
{
|
|
$row =[];
|
|
$data = [
|
|
'call_return' => '100',
|
|
'records' => $row
|
|
];
|
|
return $this->respond($data, 200);
|
|
}
|
|
|
|
} |