summaryrefslogtreecommitdiff
path: root/pkg/webui/html/login.html
diff options
context:
space:
mode:
authorJulien Dessaux2025-01-06 00:41:32 +0100
committerJulien Dessaux2025-01-06 00:41:32 +0100
commit6e069484cb0a911ba541e07bf04331fadbb76612 (patch)
tree3457c759d54ae91e5ac1e64fe0bbf9c4b8ac18f0 /pkg/webui/html/login.html
parentfeat(tfstated): add syscall.SIGTERM handling (diff)
downloadtfstated-6e069484cb0a911ba541e07bf04331fadbb76612.tar.gz
tfstated-6e069484cb0a911ba541e07bf04331fadbb76612.tar.bz2
tfstated-6e069484cb0a911ba541e07bf04331fadbb76612.zip
feat(webui): bootstrap session handling and login process
Diffstat (limited to 'pkg/webui/html/login.html')
-rw-r--r--pkg/webui/html/login.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/pkg/webui/html/login.html b/pkg/webui/html/login.html
new file mode 100644
index 0000000..0c2a167
--- /dev/null
+++ b/pkg/webui/html/login.html
@@ -0,0 +1,29 @@
+{{ define "main" }}
+{{ if .Forbidden }}
+<article>
+ <p class="error-message">Invalid username or password</p>
+</article>
+{{ end }}
+<form action="/login" method="post">
+ <fieldset>
+ <label>
+ Username
+ <input type="text"
+ placeholder="Username"
+ name="username"
+ value="{{ .Username }}"
+ {{ if .Forbidden }}aria-invalid="true"{{ end }}
+ required>
+ </label>
+ <label>
+ Password
+ <input type="password"
+ placeholder="Password"
+ name="password"
+ {{ if .Forbidden }}aria-invalid="true"{{ end }}
+ required>
+ </label>
+ </fieldset>
+ <button type="submit" value="login">Login</button>
+</form>
+{{ end }}