Commit 04b41931 authored by François Legastelois's avatar François Legastelois Committed by Johan Cwiklinski

feat(core): ability to configure more CSRF options in local_define

parent 2b04a7aa
......@@ -51,8 +51,12 @@ if (!defined('GLPI_DEMO_MODE')) {
if (!defined('GLPI_USE_CSRF_CHECK')) {
define('GLPI_USE_CSRF_CHECK', '1');
}
define("GLPI_CSRF_EXPIRES", "7200");
define("GLPI_CSRF_MAX_TOKENS", "100");
if (!defined('GLPI_CSRF_EXPIRES')) {
define("GLPI_CSRF_EXPIRES", "7200");
}
if (!defined('GLPI_CSRF_MAX_TOKENS')) {
define("GLPI_CSRF_MAX_TOKENS", "100");
}
//Define a global recipient address for email notifications
//define('GLPI_FORCE_MAIL', 'me@localhost');
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment