Remove challengefile if challenge fails, thx nachtgeist

Signed-off-by: Florian Aders <eleras@froxlor.org>
This commit is contained in:
Florian Aders
2016-02-18 20:40:41 +01:00
parent b002d687c0
commit 9b08d67ea7

View File

@@ -166,6 +166,7 @@ class lescript
$count = 0;
do {
if(empty($result['status']) || $result['status'] == "invalid") {
@unlink($tokenPath);
throw new \RuntimeException("Verification ended with error: ".json_encode($result));
}
$ended = !($result['status'] === "pending");