CSRF protection

This commit is contained in:
andryyy committed 2017-05-15 11:37:12 +02:00
1 parent fccdabb113
commit e91c6916ab
6 files changed
+37 -23

No files matched your search

+1
View File
@@ -225,6 +225,7 @@ $(document).ready(function() {
}
});
});
$("<input type='hidden' value='<?=$_SESSION['CSRF']['TOKEN'];?>' />").attr("id", "csrf_token").attr("name", "csrf_token").appendTo("form");
});
</script>