summaryrefslogtreecommitdiff
path: root/components/index.html
diff options
context:
space:
mode:
authorGrailFinder <wohilas@gmail.com>2024-04-28 07:03:36 +0300
committerGrailFinder <wohilas@gmail.com>2024-04-28 07:03:36 +0300
commit8d66ec58e2256412a2fd50ad9e651c09af1ea8cc (patch)
tree23ad5c78ba2b2da32628e9004fe932e6fa63e26b /components/index.html
parentb33be53ea9c0be523988a9412fd8e3f6a24782b3 (diff)
Feat: auth middleware; login [wip]
Diffstat (limited to 'components/index.html')
-rw-r--r--components/index.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/components/index.html b/components/index.html
index b3da4ea..3693a56 100644
--- a/components/index.html
+++ b/components/index.html
@@ -10,13 +10,18 @@
</head>
<body>
<div id="ancestor">
- <hr />
+ {{ if not . }}
+ <div>
+ {{ template "auth" }}
+ </div>
+ {{ else }}
<div>
{{ template "UserScore" . }}
</div>
<div>
{{ template "showformbtn" }}
</div>
+ {{ end }}
</div>
</body>
</html>