aboutsummaryrefslogtreecommitdiffstats
path: root/authenticate.php
diff options
context:
space:
mode:
authorLeonardo Bishop <me@leonardobishop.com>2025-04-25 01:13:03 +0100
committerLeonardo Bishop <me@leonardobishop.com>2025-04-25 01:13:03 +0100
commitc86f2b723e6956a6544bf98dc5011bd303280c6e (patch)
treef889fc105517e8a83863de621aa18a48e1231565 /authenticate.php
parent45a18c0ecb364c42307641b4057ff5a814e69b2e (diff)
Restructure repository
Diffstat (limited to 'authenticate.php')
-rw-r--r--authenticate.php35
1 files changed, 0 insertions, 35 deletions
diff --git a/authenticate.php b/authenticate.php
deleted file mode 100644
index 7decfb5..0000000
--- a/authenticate.php
+++ /dev/null
@@ -1,35 +0,0 @@
-<?php
-require_once('util.php');
-require_once('serviceDefinitions.php');
-
-session_start();
-
-$redirect = $_GET['redirect'];
-$token = $_POST['token'];
-
-if (isset($_POST['token']) && $_POST['token'] === Util\getSuperSecretToken()) {
- $_SESSION['token'] = $_POST['token'];
- header('Location: ' . $redirect);
- exit;
-}
-?>
-<!DOCTYPE html>
-<html>
-
-<head>
- <title>Authenticate</title>
- <link rel="stylesheet" type="text/css" href="styles.css">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
-</head>
-
-<body>
- <div class="container">
- <h1>Authenticate</h1>
- <hr>
- <p>Please enter the secret key to continue.</p>
- <form action="authenticate.php?redirect=<?php echo $redirect ?>" method="POST">
- Key: <input type="password" name="token">
- <input type="submit">
- </form>
- </div>
-</body>