mirror of https://github.com/dirtbags/moth.git
fix token.cgi
This commit is contained in:
parent
6532ae343a
commit
831ff2dcb2
|
@ -10,7 +10,7 @@ local token = cgi.fields['k'] or ""
|
||||||
|
|
||||||
-- Check answer
|
-- Check answer
|
||||||
local needle = token
|
local needle = token
|
||||||
local haystack = koth.path("tokens.txt")
|
local haystack = koth.path("state/tokens.txt")
|
||||||
local found, err = koth.anchored_search(haystack, needle)
|
local found, err = koth.anchored_search(haystack, needle)
|
||||||
|
|
||||||
if (not found) then
|
if (not found) then
|
||||||
|
|
Loading…
Reference in New Issue