aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/Views/auth/login.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/Views/auth/login.php')
-rw-r--r--src/app/Views/auth/login.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/app/Views/auth/login.php b/src/app/Views/auth/login.php
new file mode 100644
index 0000000..da9e7e5
--- /dev/null
+++ b/src/app/Views/auth/login.php
@@ -0,0 +1,17 @@
+<?php // Login form.?>
+<div class="auth-page">
+ <h1>Login</h1>
+ <?php include __DIR__ . '/../partials/flash.php'; ?>
+ <form method="POST" action="/login" class="auth-form">
+ <?= \App\Csrf::field() ?>
+ <label for="username">Username</label>
+ <input type="text" id="username" name="username" required>
+
+ <label for="password">Password</label>
+ <input type="password" id="password" name="password" required>
+
+ <button type="submit">Log in</button>
+ </form>
+ <p><a href="/forgot-password">Forgot your password?</a></p>
+ <p>Don't have an account? <a href="/register">Register</a></p>
+</div>