summaryrefslogtreecommitdiffstats
path: root/templates/login.html.template
diff options
context:
space:
mode:
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>