From 8d66ec58e2256412a2fd50ad9e651c09af1ea8cc Mon Sep 17 00:00:00 2001 From: GrailFinder Date: Sun, 28 Apr 2024 07:03:36 +0300 Subject: Feat: auth middleware; login [wip] --- components/auth.html | 21 +++++++++++++++++++++ components/index.html | 7 ++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 components/auth.html (limited to 'components') diff --git a/components/auth.html b/components/auth.html new file mode 100644 index 0000000..78ad338 --- /dev/null +++ b/components/auth.html @@ -0,0 +1,21 @@ +{{define "auth"}} +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+
+
+{{end}} 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 @@
-
+ {{ if not . }} +
+ {{ template "auth" }} +
+ {{ else }}
{{ template "UserScore" . }}
{{ template "showformbtn" }}
+ {{ end }}
-- cgit v1.2.3