Skip to content

Commit 553dbc7

Browse files
committed
- (Bug Fix) Added CSRF token support if enabled. Previously was throwing an error and not allowing forms to submit
1 parent c27daab commit 553dbc7

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

templates/_notification.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
<form method="post" action="" accept-charset="UTF-8">
3434
<input type="hidden" name="action" value="{{ action }}">
3535
<input type="hidden" name="redirect" value="postmaster">
36+
{{ getCsrfInput() }}
3637

3738
<div id="notification">
3839
{{ forms.textField({

templates/_parcel.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
<form method="post" action="" accept-charset="UTF-8">
3434
<input type="hidden" name="action" value="{{ action }}">
3535
<input type="hidden" name="redirect" value="postmaster">
36-
36+
{{ getCsrfInput() }}
37+
3738
<div id="parcel">
3839

3940
{{ forms.textField({

0 commit comments

Comments
 (0)