From c77b470e8acab4bc9e3cb1a45dabaad419234d50 Mon Sep 17 00:00:00 2001 From: CloudStarTreck <37251906+Teecloudy@users.noreply.github.com> Date: Mon, 16 Mar 2020 15:35:12 +0800 Subject: [PATCH] Update Script.php this change is on line 160. it allows both new users and old users to loginto the system successfully by verifying hashed passwords and normal passwords --- Script.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Script.php b/Script.php index 19bffe2..8ed23a4 100644 --- a/Script.php +++ b/Script.php @@ -156,7 +156,7 @@ header("Location: index.php"); else { while($row = mysqli_fetch_assoc($result)) { - // verify the hashed password and unhashed password + // verify the hashed password and unhashed password if(password_verify($password, $row["Password"]) or ($password = $row["Password"])){ $_SESSION['user_id']=$row['User_ID']; $_SESSION['user_email']=$row['Email'];