diff --git a/Script.php b/Script.php index 93ae150..5a84f98 100644 --- a/Script.php +++ b/Script.php @@ -158,7 +158,7 @@ header("Location: index.php"); { while($row = mysqli_fetch_assoc($result)) { // verify the hashed password and unhashed password - $sha512pass = hash('sha512', $password); + $sha512pass = hash('sha512', $password); // for backward compatibility. Old passwords were hashed using SHA512 algorithm. if(password_verify($password, $row["Password"]) or $sha512pass == $row["HashPassword"] or $password == $row["Password"]){ $_SESSION['user_id']=$row['User_ID']; $_SESSION['user_email']=$row['Email'];