aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/templates/auth
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/templates/auth')
-rw-r--r--internal/web/templates/auth/login.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/internal/web/templates/auth/login.html b/internal/web/templates/auth/login.html
new file mode 100644
index 0000000..2229849
--- /dev/null
+++ b/internal/web/templates/auth/login.html
@@ -0,0 +1,12 @@
+{{define "title"}}Log in ยท Blogspace{{end}}
+{{define "content"}}
+<div class="card narrow">
+ <h1>Log in</h1>
+ <form method="post" action="/login">
+ <input type="hidden" name="next" value="{{.Data.next}}">
+ <label>Username<br><input name="username" value="{{.Data.username}}" required autofocus autocomplete="username"></label>
+ <label>Password<br><input type="password" name="password" required autocomplete="current-password"></label>
+ <button type="submit">Log in</button>
+ </form>
+</div>
+{{end}}