summaryrefslogtreecommitdiff
path: root/templates/register.html
diff options
context:
space:
mode:
authorhaturatu <taro@eyes4you.org>2025-10-13 00:08:25 +0900
committerhaturatu <taro@eyes4you.org>2025-10-13 00:08:25 +0900
commit15830af5b190cfb6f28e0bdf0f4bf110256ed9ef (patch)
treeefd3c4bdd00f8bea6df8ba2155015d18db5cfba2 /templates/register.html
parent6515a6fd2b2d29a8f363c906148f3abf7cf982e9 (diff)
fix(csrf): js csrf support
Diffstat (limited to 'templates/register.html')
-rw-r--r--templates/register.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/register.html b/templates/register.html
index d98ef4d..7db7972 100644
--- a/templates/register.html
+++ b/templates/register.html
@@ -10,6 +10,7 @@
<div class="container form-container">
<h2>Create Account</h2>
<form id="register-form" action="{{.Paths.Register}}" method="post">
+ <input type="hidden" name="gorilla.csrf.Token" value="{{.CSRFToken}}">
<div class="form-group">
<label for="username">Username</label>
<input type="text" id="username" name="username" required>