This commit is contained in:
CHIEFSOFT\ameye
2024-10-26 10:21:10 -04:00
parent 1afaccc2ef
commit 9a9d313cc7
2 changed files with 13 additions and 16 deletions
+6 -10
View File
@@ -23,22 +23,18 @@ class Login extends BaseController {
// Get input from form
$username = $this->request->getVar('username');
$password = $this->request->getVar('mermspassword');
if ($username == 'ameye@chiefsoft.com' && $password=='Awori.Awori'){
//$this->load->model('auth_model');
$out = $this->auth_model->userLogin();
log_message('critical', "***** ***** WrenchAuth::userLogin USER_SESSION = ".$username );
if ($username != '' && $password !=''){
log_message('critical', "***** ***** WrenchAuth::userLogin USER_SESSION = ".$username );
$out = $this->auth_model->userLogin($username, $password);
// var_dump($out);
// exit;
if ($this->createUserSession($out)){ // session was built
return redirect()->to('providers');
}
// var_dump($out);
// exit();
}
$data = array();
return $this->renderExternalPage('welcome_message', $data);
} // end of index Login
public function RegisterAccount(){