fix text
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user