mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2026-04-12 02:48:48 -04:00
Add cookie_prefix to csrf cookie name (#2638)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
from: "<?php echo $this->config->item('notify_vertical_position'); ?>"
|
||||
}});
|
||||
|
||||
var cookie_name = "<?php echo $this->config->item('csrf_cookie_name'); ?>";
|
||||
var cookie_name = "<?php echo $this->config->item('cookie_prefix').$this->config->item('csrf_cookie_name'); ?>";
|
||||
|
||||
var csrf_token = function() {
|
||||
return Cookies.get(cookie_name);
|
||||
|
||||
Reference in New Issue
Block a user