mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-02-05 14:20:13 +01:00
Merge branch 'master' of https://github.com/NodeBB/NodeBB
This commit is contained in:
15
public/src/modules/csrf.js
Normal file
15
public/src/modules/csrf.js
Normal file
@@ -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;
|
||||
});
|
||||
Reference in New Issue
Block a user