prepare($sql); $stmt->execute(array("email"=> $email)); $user = $stmt->fetch(); } catch (PDOException $e) { die ("Something happened: ". $e->getMessage()); } if (password_verify($password, $user["password"])) { $_SESSION["id"] = $user["id"]; $_SESSION["auth"] = true; if (isset($query['callback'])) { header("Location: ".$query['callback']); } else { header("Location: /profile"); // echo "
"; // var_dump($user); // var_dump($_SESSION); // die(); } exit; } else { $message = "Email or password incorrect."; } } ?>Sign in to ByeCorps ID
$message"; }?>
Forgot password? • New? Register for a ByeCorps ID.