From 65106059acc7d0d1df6cf6003dbcd5f02e044630 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.

"); }