Commit 5650e1bb by tetiana yaremko

created Auth_model (for login)

authentication process is implemented
 Created  register_model
 Registration is implemented
 login view is improved
parent eba99a42
Showing with 1 additions and 18 deletions
......@@ -131,24 +131,7 @@ class Auth extends CI_Controller {
if($this->form_validation->run()==TRUE) {
/*
$data = array(
'email' =>$_POST['email'],
'password' =>md5($_POST['password']),
'name' =>$_POST['name'],
'surname' =>$_POST['surrname'],
'country' =>$_POST['country'],
'city' =>$_POST['city'],
'street' =>$_POST['street'],
'building' =>$_POST['building'],
'zip' =>$_POST['zip'],
'phone' =>$_POST['phone']
);
$this->db->insert('users', $data);
//$this->session->set_flashdata("success", "Your account has been registered.You can login now"); */
$this->load->model('Register_model', 'reg');
$this->reg->register_user();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment