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 passwordsProjectHomePage
parent
625d447dd9
commit
c77b470e8a
|
@ -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'];
|
||||
|
|
Loading…
Reference in New Issue