mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
antibot - fix bug when session checks fail
This commit is contained in:
parent
bf2f52ae83
commit
24ec019141
1 changed files with 1 additions and 0 deletions
|
|
@ -606,6 +606,7 @@ utils.get_session = function(ctx)
|
|||
logger:log(ERR, "error while getting variable SESSIONS_CHECK_" .. check .. " : " .. err)
|
||||
elseif check_value == "yes" and value ~= metadata[check] then
|
||||
logger:log(WARN, "session check failed : " .. check .. "!=" .. metadata[check])
|
||||
session:clear_request_cookie()
|
||||
local ok
|
||||
ok, err = session:destroy()
|
||||
if not ok then
|
||||
|
|
|
|||
Loading…
Reference in a new issue