Advertisement
Guest User

Untitled

a guest
Aug 11th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2. session_start();
  3.  
  4. include 'dbh.php';
  5.  
  6. $Username = $_POST['Username'];
  7. $Password = $_POST['Password'];
  8.  
  9. $sql = "SELECT * FROM account WHERE Username='$Username'";
  10. $result = $conn->query($sql);
  11. while ($row = $result->fetch_assoc()) {
  12. $UsernameActualhashedPassword = $row['Password'];
  13. }
  14.  
  15. $input = $Password;
  16.  
  17. echo $input;
  18. echo $UsernameActualhashedPassword;
  19. echo password_verify($input, $UsernameActualhashedPassword);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement