Private GIT

Skip to content
Snippets Groups Projects
Unverified Commit a1f410e1 authored by Gary Allan's avatar Gary Allan
Browse files

Bugfix: Invalid CSRF cookie. Fixes #4002

parent 55c20560
Branches
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ $User->check_maintaneance_mode (); ...@@ -21,7 +21,7 @@ $User->check_maintaneance_mode ();
# perm check popup # perm check popup
$User->check_module_permissions ("vlan", User::ACCESS_RWA, true, true); $User->check_module_permissions ("vlan", User::ACCESS_RWA, true, true);
# validate csrf cookie # validate csrf cookie
$csrf = $User->Crypto->csrf_cookie ("create", "scan"); $csrf = $User->Crypto->csrf_cookie ("create-if-not-exists", "scan");
# scan disabled # scan disabled
if ($User->settings->enableSNMP!="1") { $Result->show("danger", _("SNMP module disbled"), true, true); } if ($User->settings->enableSNMP!="1") { $Result->show("danger", _("SNMP module disbled"), true, true); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment