LE: remove challenge file on failure, take #2 ;)

This commit is contained in:
Daniel Reichelt
2016-02-19 14:43:52 +01:00
parent 185178a91e
commit b071b8c2d9

View File

@@ -145,6 +145,7 @@ class lescript
// simple self check // simple self check
if($payload !== trim(@file_get_contents($uri))) { if($payload !== trim(@file_get_contents($uri))) {
@unlink($tokenPath);
throw new \RuntimeException("Please check $uri - token not available"); throw new \RuntimeException("Please check $uri - token not available");
} }