Skip to content

Node.js based forum software built for the modern web

adding missing file, re: #2424

Julian Lamb06ff89e0228
diff --git a/public/src/modules/csrf.js b/public/src/modules/csrf.js
new file mode 100644
index 0000000000..0329a42917
--- /dev/null
+++ b/public/src/modules/csrf.js
@@ -0,0 +1,15 @@
+define('csrf', function() {
+ "use strict";
+ var csrf = {},
+ _data = {};
+
+ csrf.get = function() {
+ return _data.token;
+ }
+
+ csrf.set = function(token) {
+ _data.token = token;
+ };
+
+ return csrf;
+});
\ No newline at end of file