Fix csrf token unexported error
This commit is contained in:
1 parent
e8e42f3724
commit
8c93b3746b
3 files changed
+8
-8
No files matched your search
@@ -2,7 +2,7 @@
|
||||
|
||||
{{ define "content" }}
|
||||
<form action="/login-handle" method="post">
|
||||
<input name="csrf_token" type="hidden" value="{{ .csrfToken }}">
|
||||
<input name="csrf_token" type="hidden" value="{{ .CsrfToken }}">
|
||||
|
||||
<label for="username">Username:</label><br>
|
||||
<input id="username" name="username" type="text" value="John"><br><br>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
{{ define "content" }}
|
||||
<form action="/register-handle" method="post">
|
||||
<input name="csrf_token" type="hidden" value="{{ .csrfToken }}">
|
||||
<input name="csrf_token" type="hidden" value="{{ .CsrfToken }}">
|
||||
|
||||
<label for="username">Username:</label><br>
|
||||
<input id="username" name="username" type="text" value="John"><br><br>
|
||||
|
||||
Reference in new issue
Block a user