mirror of https://github.com/dirtbags/moth.git
Have claim.cgi look in $STATE/tokens.db again
This commit is contained in:
parent
c352563d40
commit
2af405c40b
|
@ -63,7 +63,8 @@ main(int argc, char *argv[])
|
|||
if (p) p += 1;
|
||||
|
||||
/* Now we can check to see if it's valid */
|
||||
if (! anchored_search(package_path("%s/tokens.txt", category), token, 0)) {
|
||||
if ((! anchored_search(package_path("%s/tokens.txt", category), token, 0)) &&
|
||||
(! anchored_search(state_path("tokens.db"), token, 0))) {
|
||||
cgi_result(409, "No such token", "<p>This token has not been issued.</p>");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue