summaryrefslogtreecommitdiffstats
path: root/templates/login.html.template
diff options
context:
space:
mode:
authorRose Hogenson <rosehogenson@posteo.net>2025-09-20 21:12:47 -0700
committerRose Hogenson <rosehogenson@posteo.net>2025-09-20 21:12:47 -0700
commit1905b90698b8171880b812bec1fcafaf0e35dc6a (patch)
treed676478bde0005179244c6baf06bdfb0b847c0c1 /templates/login.html.template
parent34a2a69a28457f5b58c357cb19f091330cca6110 (diff)
downloadroseh.moe-1905b90698b8171880b812bec1fcafaf0e35dc6a.tar.zst
Ditch HTMX
Diffstat (limited to 'templates/login.html.template')
-rw-r--r--templates/login.html.template17
1 files changed, 8 insertions, 9 deletions
diff --git a/templates/login.html.template b/templates/login.html.template
index 658d477..53ab905 100644
--- a/templates/login.html.template
+++ b/templates/login.html.template
@@ -1,13 +1,12 @@
{{define "head"}}<title>Login</title>{{end}}
-<p class="login-error">{{.Error}}</p>
-
<section>
- <div style="display:flex">
- <form class="password-form" action="/login" method="post">
- <label class="password-label" for="password">Enter password</label>
- <input id="password" class="password" type="password" name="password">
- <input type="hidden" name="redirect" value="{{.Redirect}}">
- </form>
- </div>
+ {{if .Error}}
+ <p class="login-error">Incorrect password</p>
+ {{end}}
+ <form class="password-form" action="/login" method="post">
+ <label class="password-label" for="password">Enter password</label>
+ <input id="password" class="password" type="password" name="password">
+ <input type="hidden" name="redirect" value="{{.Redirect}}">
+ </form>
</section>