aboutsummaryrefslogtreecommitdiff
path: root/ui/pages/user/login.tmpl.html
diff options
context:
space:
mode:
authorAlexander Kavon <hawk@alexkavon.com>2023-11-30 20:10:41 -0500
committerAlexander Kavon <hawk@alexkavon.com>2023-11-30 20:10:50 -0500
commit17af6e1a5017285b680a7d0a1dace1e1a1612ab9 (patch)
treeb33696d408ca10c5b0edd99cad399cc1dd093f52 /ui/pages/user/login.tmpl.html
parentb3ea95f3d494c10d3f37de7842982138b4ee19a5 (diff)
fixed login/create templates to point to correct endpoints, updated func names to be more idiomatic, reference Session objects to save memory, logout/session.Destroy method
Diffstat (limited to 'ui/pages/user/login.tmpl.html')
-rw-r--r--ui/pages/user/login.tmpl.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/pages/user/login.tmpl.html b/ui/pages/user/login.tmpl.html
index 5c42f97..d56f61a 100644
--- a/ui/pages/user/login.tmpl.html
+++ b/ui/pages/user/login.tmpl.html
@@ -2,7 +2,7 @@
{{define "main"}}
<h1>Login</h1>
- <form hx-post="/user" action="/user/auth" method="POST" hx-target="#messages" hx-swap="outerHTML">
+ <form action="/u/auth" method="POST">
<label>
Username
<input type="text" placeholder="username" name="username" />
@@ -11,6 +11,6 @@
Password
<input type="password" placeholder="password" name="password" />
</label>
- <button type="submit" hx-disabled-elt="this">Login</button>
+ <button type="submit">Login</button>
</form>
{{end}}