num_rows > 0) {
$row = $result->fetch_assoc();
$_SESSION['username'] = $userName;
$passWord_hashed = $row["C_Password"];
$passWord_correct = password_verify($passWord_user, $passWord_hashed);
if ($passWord_correct === false) {
echo "";
exit();
} else {
// if (isset($_POST['g-recaptcha-response']) && !empty($_POST['g-recaptcha-response'])) {
// $secretKey = "6LehX_4aAAAAANIoyIRIYn8QzZtwtE7ytaQ1hgmZ";
// $responseKey = $_POST['g-recaptcha-response'];
// $userIP = $_SERVER['REMOTE_ADDR'];
// $url = "https://www.google.com/recaptcha/api/siteverify?secret=$secretKey&response=$responseKey&remoteip=$userIP";
// $response = file_get_contents($url);
// $response = json_decode($response);
// if($response->success){
// echo "Verification success.";
// header("Location: shopping.php");
// } else {
// echo "";
// return;
// }
// } else {
// echo "";
// return;
// }
// TODO: delete later
echo "Verification success.";
header("Location: ../shopping/shopping.php");
}
} else {
// echo "";
header("Location: ../index.html");
exit();
}
$conn->close();
?>