user fix
This commit is contained in:
parent
baae5280b9
commit
a91ef3e85e
@ -7,12 +7,12 @@ class User_model extends CI_Model {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public function get_user_by_email($email) {
|
public function get_user_by_email($email) {
|
||||||
$query = $this->db->get_where('users', ['email' => $email]);
|
$query = $this->db->get_where('user', ['email' => $email]);
|
||||||
return $query->row_array();
|
return $query->row_array();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function create_user($data) {
|
public function create_user($data) {
|
||||||
return $this->db->insert('users', $data);
|
return $this->db->insert('user', $data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user