Advertisement
Guest User

Untitled

a guest
Jun 2nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. public function action_formAction()
  2. {
  3. $error_login = '';
  4. if($_POST){
  5. $data_entry = new Model_User();
  6. $user_data = $data_entry->fetch_where(array(array('username','=', $_POST['name'])));
  7. $count = $user_data->count();
  8. if($count != 0){
  9. $user_id = $data_entry->id;
  10. $user_name = $data_entry->username;
  11. $password = $_POST['password'];
  12. //$user_data = $data_entry->fetch_where(array(array('password','=', $_POST['password'])));
  13. $count = $user_data->count();
  14.  
  15. if( Model_User::from_name($user_name)->check_password($password)){echo 'hoi'; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement