aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2020-08-14 23:13:41 -0700
committerMax Resnick <max@ofmax.li>2020-11-08 07:57:13 -0800
commit689a57ec4a444f8233fe2e5ec7ceb0903218218d (patch)
tree1bcfe6786c38b4ae11997d5d97dc3c5fba747b97 /templates
parent77c2e6aca2dc0f851f55e30a0f49c9ee7c2c952e (diff)
downloadiserv-master.tar.gz
feat: working login gauthHEADmaster
Diffstat (limited to '')
-rw-r--r--templates/pages/image.tmpl2
-rw-r--r--templates/pages/login.tmpl17
2 files changed, 18 insertions, 1 deletions
diff --git a/templates/pages/image.tmpl b/templates/pages/image.tmpl
index fcebdd5..79bf5dc 100644
--- a/templates/pages/image.tmpl
+++ b/templates/pages/image.tmpl
@@ -6,7 +6,7 @@
<div>
<figure>
<img src="http://localhost:8080{{ .ImageUrl }}">
- <caption>{{.ImageDesc}}</caption>
+ <figcaption>{{.ImageDesc }}</figcaption>
</figure>
</div>
</body>
diff --git a/templates/pages/login.tmpl b/templates/pages/login.tmpl
new file mode 100644
index 0000000..8598cb1
--- /dev/null
+++ b/templates/pages/login.tmpl
@@ -0,0 +1,17 @@
+{{ define "content" }}
+<body>
+<div>
+<h3>Login</h3>
+</div>
+<div>
+<form action="https://indielogin.com/auth" method="get">
+ <label for="url">Email Address:</label>
+ <input id="url" type="text" name="me" placeholder="yourdomain.com" />
+ <p><input type="submit">Sign In</input></p>
+ <input type="hidden" name="client_id" value="https://img.ofmax.li/" />
+ <input type="hidden" name="redirect_uri" value="https://img.ofmax.li/a/g" />
+ <input type="hidden" name="state" value="{{ .Token }}" />
+</form>
+</div>
+</body>
+{{ end }}