aboutsummaryrefslogtreecommitdiff
path: root/views/register/index.php
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-01-25 19:31:14 +0200
committerSyndamia <kamen@syndamia.com>2025-01-25 19:59:25 +0200
commitf7db20f6a635a4195647941a8c150a1bb3fcf904 (patch)
treed2498a078139fc1caebcf83ae5d05d9acaf88550 /views/register/index.php
parent046dc2e32512dad2458be3e367e16e6e1a6f46f3 (diff)
downloadnowayforward_human-f7db20f6a635a4195647941a8c150a1bb3fcf904.tar
nowayforward_human-f7db20f6a635a4195647941a8c150a1bb3fcf904.tar.gz
nowayforward_human-f7db20f6a635a4195647941a8c150a1bb3fcf904.zip
feat(views): Add basic profile and register views
Diffstat (limited to 'views/register/index.php')
-rw-r--r--views/register/index.php25
1 files changed, 25 insertions, 0 deletions
diff --git a/views/register/index.php b/views/register/index.php
new file mode 100644
index 0000000..4e2abb1
--- /dev/null
+++ b/views/register/index.php
@@ -0,0 +1,25 @@
+<?php
+ $title = 'Register a new user';
+ include '../meta.php';
+
+ $status = null;
+ runController('register');
+?>
+
+<?php if ($status !== null): ?>
+ <?php if ($status !== ""): ?>
+ <p>
+ Fail: <?php echo $status ?>
+ </p>
+ <?php else: ?>
+ <p>
+ Success!
+ </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="Register">
+</form>