aboutsummaryrefslogtreecommitdiff
path: root/views/login/index.php
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-01-25 19:59:22 +0200
committerSyndamia <kamen@syndamia.com>2025-01-25 19:59:25 +0200
commitf6dbaf91e950657f97c456a296e5a76e27d4cb10 (patch)
tree6c3ad506f355f06f3612b1dd2913d75b27d618ba /views/login/index.php
parentbd2b3acd9c4f54fc13d341b977371393be50fbd6 (diff)
downloadnowayforward_human-f6dbaf91e950657f97c456a296e5a76e27d4cb10.tar
nowayforward_human-f6dbaf91e950657f97c456a296e5a76e27d4cb10.tar.gz
nowayforward_human-f6dbaf91e950657f97c456a296e5a76e27d4cb10.zip
feat(views/login): Add login page
Diffstat (limited to 'views/login/index.php')
-rw-r--r--views/login/index.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/views/login/index.php b/views/login/index.php
new file mode 100644
index 0000000..a77f106
--- /dev/null
+++ b/views/login/index.php
@@ -0,0 +1,26 @@
+<?php
+ $title = 'Login to your account';
+ include '../meta.php';
+
+ $status = null;
+ $token = null;
+ runController('login');
+?>
+
+<?php if ($status !== null): ?>
+ <?php if ($status !== ""): ?>
+ <p>
+ Fail: <?php echo $status ?>
+ </p>
+ <?php else: ?>
+ <p>
+ Success! Token: <?php echo $token ?>
+ </p>
+ <?php endif; ?>
+<?php endif; ?>
+
+<form action="./index.php" method="POST">
+ <input type="text" name="username" placeholder="Username" minlength="1" pattern="[A-Za-z][A-Za-z_0-9]*">
+ <input type="password" name="password" placeholder="Password" minlength="4">
+ <input type="submit" value="Login">
+</form>