diff options
| author | Syndamia <kamen@syndamia.com> | 2025-01-25 19:59:22 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2025-01-25 19:59:25 +0200 |
| commit | f6dbaf91e950657f97c456a296e5a76e27d4cb10 (patch) | |
| tree | 6c3ad506f355f06f3612b1dd2913d75b27d618ba /views/login/index.php | |
| parent | bd2b3acd9c4f54fc13d341b977371393be50fbd6 (diff) | |
| download | nowayforward_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.php | 26 |
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> |
