fox login types
This commit is contained in:
@@ -6,10 +6,10 @@ MERM Providers Login
|
||||
*/
|
||||
class Login extends BaseController {
|
||||
|
||||
protected \App\Models\Auth_model $auth_model;
|
||||
public function __construct() {
|
||||
// parent::__construct();
|
||||
// $this->load->helper(array('form', 'url'));
|
||||
// $this->load->library('form_validation');
|
||||
$this->auth_model = new \App\Models\Auth_model();
|
||||
}
|
||||
public function HomeLogin(){
|
||||
$data = array();
|
||||
@@ -25,7 +25,14 @@ class Login extends BaseController {
|
||||
$password = $this->request->getVar('mermspassword');
|
||||
|
||||
if ($username == 'ameye@chiefsoft.com' && $password=='Awori.Awori'){
|
||||
return redirect()->to('providers');
|
||||
|
||||
//$this->load->model('auth_model');
|
||||
$out = $this->auth_model->userLogin();
|
||||
if ($this->createUserSession($out)){ // session was built
|
||||
return redirect()->to('providers');
|
||||
}
|
||||
// var_dump($out);
|
||||
// exit();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user