summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-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>