From 2af405c40b1cb0e285b75d89d6677c35c63c9578 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Wed, 30 May 2012 18:10:04 -0600 Subject: [PATCH] Have claim.cgi look in $STATE/tokens.db again --- packages/mcp/src/claim.cgi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/mcp/src/claim.cgi.c b/packages/mcp/src/claim.cgi.c index 4e3885d..8f8bd10 100644 --- a/packages/mcp/src/claim.cgi.c +++ b/packages/mcp/src/claim.cgi.c @@ -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", "

This token has not been issued.

"); }