aboutsummaryrefslogtreecommitdiff
path: root/templates/login.html
diff options
context:
space:
mode:
authorJulian Hurst <ark@mansus.space>2023-01-26 22:25:50 +0100
committerJulian Hurst <ark@mansus.space>2023-01-26 22:25:50 +0100
commit12f7cf21265d7d6c9d1d60e2ae63753846a58c4b (patch)
tree8bcc6179362138b471a8ddb197fbd6e8f136ce8f /templates/login.html
parent39d0c249498fdb924697647d0bafbf324b01d3cc (diff)
downloaddocspace-12f7cf21265d7d6c9d1d60e2ae63753846a58c4b.tar.gz
Wrap template data to always pass the User
Diffstat (limited to 'templates/login.html')
-rw-r--r--templates/login.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/login.html b/templates/login.html
index 5e717c3..037879d 100644
--- a/templates/login.html
+++ b/templates/login.html
@@ -1,8 +1,8 @@
{{define "title"}}Connexion{{end}}
{{define "content"}}
<h1>Connexion</h1>
-{{if .Error}}
-<p class="error">{{.Error}}</p>
+{{if .Data.Error}}
+<p class="error">{{.Data.Error}}</p>
{{end}}
<form action="/login" method="POST">
<input required type="text" name="user" id="user" placeholder="Nom d'utilisateur"><br/><br/>