summaryrefslogtreecommitdiff
path: root/components/auth.html
diff options
context:
space:
mode:
authorGrailFinder <wohilas@gmail.com>2024-05-18 13:27:28 +0300
committerGrailFinder <wohilas@gmail.com>2024-05-18 13:27:28 +0300
commit2e9b18944eac3dcaf8a006594cb338d94c07a447 (patch)
tree7715140a6951407d13781e0a5bbf83a6e8f9dbe9 /components/auth.html
parentff86222fc9ab85fb4c5c5e8a063083595b323761 (diff)
Feat: auth; login; signup; migrate to sqlite
Diffstat (limited to 'components/auth.html')
-rw-r--r--components/auth.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/components/auth.html b/components/auth.html
index 78ad338..5122919 100644
--- a/components/auth.html
+++ b/components/auth.html
@@ -1,6 +1,6 @@
{{define "auth"}}
<div id="logindiv">
- <form class="space-y-6" hx-post="/login" hx-target="#ancestor" hx-swap="outerHTML">
+ <form class="space-y-6" hx-target="#ancestor" hx-swap="outerHTML">
<div>
<label For="username" class="block text-sm font-medium leading-6 text-white-900">username</label>
<div class="mt-2">
@@ -8,13 +8,14 @@
</div>
</div>
<div>
- <label For="room_pass" class="block text-sm font-medium leading-6 text-white-900">password</label>
+ <label For="password" class="block text-sm font-medium leading-6 text-white-900">password</label>
<div class="mt-2">
<input id="password" name="password" type="password" required class="rounded-md text-center text-black" />
</div>
</div>
<div>
- <button type="submit" class="justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Sign in</button>
+ <button type="submit" hx-post="/login" class="justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Log in</button>
+ <button type="submit" hx-post="/signup" class="justify-center rounded-md bg-indigo-600 px-3 py-1.5 text-sm font-semibold leading-6 text-white shadow-sm hover:bg-indigo-500 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-indigo-600">Sign up</button>
</div>
</form>
</div>