Add csrf checking for cookie posts, fix file hotlinking

This commit is contained in:
Jonathan Cremin 2015-08-10 11:44:47 +01:00
parent 9ccf3d855e
commit b9c6598250
7 changed files with 27 additions and 16 deletions

View file

@ -25,7 +25,7 @@
<% } %>
<div class="holder">
<form role="form" action="/forgot<%= token ? '/' + token : '' %>" method="post">
<input type="hidden" name="_csrf" value="<%= csrf %>" />
<% if(typeof error !== 'undefined') { %>
<div class="alert alert-danger">
<%= error %>