Provider login
This commit is contained in:
@@ -6,6 +6,11 @@ MERM Providers Login
|
||||
*/
|
||||
class Login extends BaseController {
|
||||
|
||||
public function __construct() {
|
||||
// parent::__construct();
|
||||
// $this->load->helper(array('form', 'url'));
|
||||
// $this->load->library('form_validation');
|
||||
}
|
||||
public function HomeLogin(){
|
||||
$data = array();
|
||||
return $this->renderExternalPage('welcome_message', $data);
|
||||
@@ -15,6 +20,13 @@ class Login extends BaseController {
|
||||
$data = array();
|
||||
$data['username'] = $data['pass'] = $data['error_message']='';
|
||||
//$this->request->getPost();
|
||||
// Get input from form
|
||||
$username = $this->request->getVar('username');
|
||||
$password = $this->request->getVar('mermspassword');
|
||||
|
||||
if ($username == 'ameye@chiefsoft.com' && $password=='Awori.Awori'){
|
||||
return redirect()->to('providers');
|
||||
}
|
||||
|
||||
|
||||
$data = array();
|
||||
|
||||
Reference in New Issue
Block a user