mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-05-12 01:37:13 -04:00
Don't add csrf token if cookie expired (#1392)
This commit is contained in:
@@ -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