mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-10-20 15:24:35 -04:00
Don't add csrf token if cookie expired (#1392)
This commit is contained in:
1 parent
858845f4f5
commit
5d49728c74
1 file changed
+1
-1
@@ -27,7 +27,7 @@
|
||||
};
|
||||
|
||||
$.post = function() {
|
||||
arguments[1] = $.extend(arguments[1], csrf_form_base());
|
||||
arguments[1] = csrf_token() ? $.extend(arguments[1], csrf_form_base()) : arguments[1];
|
||||
post.apply(this, arguments);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user