Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function loginTest($username, $password)
- {
- $user = $this->fetch("SELECT * FROM {$this->table} WHERE username = :username", [
- 'username' => $username,
- ]);
- if($verifiedPassword = password_verify($password, $user['password'])){
- return $user;
- }
- else{
- echo 'Wrong username or password';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement