From 2b03c8118d56d29e35e09c111d21e29b1a32f541 Mon Sep 17 00:00:00 2001 From: CloudStarTreck <37251906+Teecloudy@users.noreply.github.com> Date: Mon, 16 Mar 2020 15:30:56 +0800 Subject: [PATCH] Update Script.php passwords are now encripted by password hashing. This improves privacy on user data. --- Script.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Script.php b/Script.php index bc53e6d..661f281 100644 --- a/Script.php +++ b/Script.php @@ -113,7 +113,7 @@ if (!empty($_POST["frm_signup_1"])) { header("Location: signup.php"); return; } - // check if email is taked + // check if email is taken $result = mysqli_query($con, "SELECT * FROM Users_Table WHERE email='$email'"); if(mysqli_num_rows($result)!=0) @@ -122,7 +122,7 @@ if (!empty($_POST["frm_signup_1"])) { header("Location: signup.php"); return; } - //applying password_hash() + //applying password_hash() (first_commit) $password_hash = password_hash($password, PASSWORD_DEFAULT); $sql= "INSERT INTO `users_table`(`Email`, `Password`, `Full_Name`, `UserType`, `Student_ID`, `Passport_Number`) VALUES " . "('$email','$password_hash','$fullname','Student','$student_id','$passport')";