Skip to content

Commit

Permalink
CSRF compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ammopt committed Apr 8, 2024
1 parent 3c684eb commit c72bbe5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
<div id="errormessage" style="display:none"></div>
</div>
<form method="POST" action="[% here %]" id="create_form">
[% INCLUDE 'csrf-token.inc' %]
<fieldset class="rows">
<legend>Enter metadata</legend>
<input name="stage" id="stage" value="validate" type="hidden"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

[% ELSIF whole.stage == "init" %]
<form method="POST" id="create_form">
[% INCLUDE 'csrf-token.inc' %]
<fieldset class="rows">
<legend>Place an interlibrary loan request</legend>
<input name="stage" id="stage" value="validate" type="hidden"/>
Expand Down

0 comments on commit c72bbe5

Please sign in to comment.