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: /account"); } exit; } else { $message = "Email or password incorrect."; } } ?>
New? Register for a ByeCorps ID.