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