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; // // print_r($_POST); // echo(is_string($_POST['keep_logged_in'])); if (array_key_exists('keep_logged_in', $_POST)) { if ($_POST['keep_logged_in'] == "on") { $token = generate_cookie_access_token($user['id']); // print_r($token); setcookie("keep_me_logged_in", $token['access']); } } // if (isset($query['callback'])) { header("Location: ".$query['callback']); } else { header("Location: /profile"); } exit; } else { $message = "Email or password incorrect."; } } ?>

Sign in to ByeCorps ID

$message
"; }?>

Forgot password? • New? Sign up for a ByeCorps ID.