Ispravka: CSRF polje mora biti _csrf, ne csrf_token (dugmad tiho vraćala 403)

This commit is contained in:
2026-07-01 11:36:43 +02:00
parent e7dcaf4433
commit b5f2742aa9
9 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -253,7 +253,7 @@
</div>
</div>
<form method="POST" action="/prodaja/storno/{{.Nalog.ID}}" style="display:flex;flex-direction:column;gap:8px;align-items:flex-end;">
<input type="hidden" name="csrf_token" value="{{.CsrfToken}}">
<input type="hidden" name="_csrf" value="{{.CsrfToken}}">
<input type="text" name="razlog" placeholder="Razlog storniranja (opciono)" style="width:240px;">
<button type="submit" class="btn-upozorenje"
data-potvrda="Stornirati nalog {{.Nalog.BrojNaloga}}?">
@@ -295,7 +295,7 @@
</div>
</div>
<form method="POST" action="/prodaja/obrisi/{{.Nalog.ID}}">
<input type="hidden" name="csrf_token" value="{{.CsrfToken}}">
<input type="hidden" name="_csrf" value="{{.CsrfToken}}">
<button type="submit" class="btn-upozorenje"
data-potvrda="Stornirati nalog {{.Nalog.BrojNaloga}}? Količine artikala biće vraćene na stanje.">
Ukloni nalog