Update Script.php

Allow users to login soon after signup by confirming the user details from the database on line 159
pull/17/head
CloudStarTreck 2020-03-16 15:32:07 +08:00
parent 2b03c8118d
commit 625d447dd9
1 changed files with 1 additions and 1 deletions

View File

@ -156,7 +156,7 @@ header("Location: index.php");
else else
{ {
while($row = mysqli_fetch_assoc($result)) { 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"])){ if(password_verify($password, $row["Password"]) or ($password = $row["Password"])){
$_SESSION['user_id']=$row['User_ID']; $_SESSION['user_id']=$row['User_ID'];
$_SESSION['user_email']=$row['Email']; $_SESSION['user_email']=$row['Email'];