Merge branch 'devel'

This commit is contained in:
HF 2022-09-07 21:27:00 +02:00
commit 9681209320

View File

@ -25,6 +25,12 @@
-- 5: if we have to update isAllowed( proxycheck)
-- }
local ret = {0, 0, 0, 0, 0}
-- check if captcha is needed
if KEYS[2] ~= "nope" and not redis.call('get', KEYS[2]) then
-- captcha
ret[1] = 10
return ret
end
-- check if isAllowed
local ia = redis.call('get', KEYS[1])
if not ia then
@ -45,12 +51,6 @@ else
return ret
end
end
-- check if captcha is needed
if KEYS[2] ~= "nope" and not redis.call('get', KEYS[2]) then
-- captcha
ret[1] = 10
return ret
end
-- get cooldown of user
local cd = redis.call('pttl', KEYS[3])
if cd < 0 then