Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. final public function userValidation($username, $password)
  2. {
  3. global $engine;
  4. if($engine->num_rows("SELECT * FROM users WHERE username = '" . $username . "' AND password = '" . $password . "' LIMIT 1") > 0)
  5. return password_verify($password);
  6. {
  7. return true;
  8. }
  9.  
  10. return false;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement