fox login types

This commit is contained in:
CHIEFSOFT\ameye
2024-10-26 08:31:17 -04:00
parent 6f338df5cd
commit 1afaccc2ef
6 changed files with 122 additions and 5 deletions
+10 -3
View File
@@ -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();
}