aboutsummaryrefslogtreecommitdiff
path: root/src/filters/auth/cookie.html
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-05-29 23:44:14 +0200
committermetamuffin <metamuffin@disroot.org>2024-05-29 23:44:14 +0200
commit29c48afafb4a6a0a0636774f9b56423881fb1703 (patch)
treefa610555a33c25a1aaeb98242099c2010ac243b0 /src/filters/auth/cookie.html
parent886a18e0c67624d0882f04c7f6659bcfee6b4d8d (diff)
downloadgnix-29c48afafb4a6a0a0636774f9b56423881fb1703.tar
gnix-29c48afafb4a6a0a0636774f9b56423881fb1703.tar.bz2
gnix-29c48afafb4a6a0a0636774f9b56423881fb1703.tar.zst
implement cookie base auth.
Diffstat (limited to 'src/filters/auth/cookie.html')
-rw-r--r--src/filters/auth/cookie.html35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/filters/auth/cookie.html b/src/filters/auth/cookie.html
new file mode 100644
index 0000000..40bb157
--- /dev/null
+++ b/src/filters/auth/cookie.html
@@ -0,0 +1,35 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Document</title>
+ <style>
+ body {
+ background-color: grey;
+ }
+ form {
+ margin: auto;
+ width: 200px;
+ padding: 20px;
+ border: 2px solid black;
+ background-color: white;
+ }
+ input[type="text"],
+ input[type="password"] {
+ box-sizing: border-box;
+ width: 100%;
+ margin-bottom: 1em;
+ }
+ </style>
+ </head>
+ <body>
+ <form action="/_gnix_login" method="post">
+ <label for="username">Username: </label><br />
+ <input type="text" name="username" id="username" /><br />
+ <label for="password">Password: </label><br />
+ <input type="password" name="password" id="password" /><br />
+ <input type="submit" value="Login" />
+ </form>
+ </body>
+</html>