Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Login {
- public function log_in($username, $password) {
- include 'connection.php';
- $stmt = $pdo->prepare("SELECT * FROM members where username = ?");
- $stmt->execute([$_POST['username']]);
- $result = $stmt->fetch();
- $yourpassword = $result['password'];
- echo $yourpassword . "</br>";
- if(password_verify($password, $yourpassword)){
- echo "yep" . "</br>";
- } else {
- echo "nope" . "</br>";
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement