summaryrefslogtreecommitdiff
path: root/pages/login.templ
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2024-10-17 21:58:48 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2024-10-17 21:58:48 +0200
commitae6e2c5070569eaf2d420e0c3e01c9ea1377b8eb (patch)
tree2704d5aeab636e845a820c5fe557001e668981c4 /pages/login.templ
parent6f0639fdff8968214107061b71783ba4f264b8ca (diff)
downloadgosten-ae6e2c5070569eaf2d420e0c3e01c9ea1377b8eb.tar.gz
gosten-ae6e2c5070569eaf2d420e0c3e01c9ea1377b8eb.tar.bz2
gosten-ae6e2c5070569eaf2d420e0c3e01c9ea1377b8eb.zip
Don't use hardcoded url
Diffstat (limited to '')
-rw-r--r--pages/login.templ2
1 files changed, 1 insertions, 1 deletions
diff --git a/pages/login.templ b/pages/login.templ
index fed611e..a97d979 100644
--- a/pages/login.templ
+++ b/pages/login.templ
@@ -7,7 +7,7 @@ import (
templ login(u user) {
@base() {
<main class="d-flex align-items-center min-vh-100">
- <form action="/login" method="post" class="container mx-auto" style="max-width: 440px;">
+ <form action={templ.SafeURL(getCurrPath(ctx))} method="post" class="container mx-auto" style="max-width: 440px;">
<img src="/static/euro-money.svg" width="96" height="96" class="mb-4"/>
@form.Form(u, u.Errors)
@u.Csrf()