Remove challengefile if challenge fails, thx nachtgeist
Signed-off-by: Florian Aders <eleras@froxlor.org>
This commit is contained in:
@@ -166,6 +166,7 @@ class lescript
|
|||||||
$count = 0;
|
$count = 0;
|
||||||
do {
|
do {
|
||||||
if(empty($result['status']) || $result['status'] == "invalid") {
|
if(empty($result['status']) || $result['status'] == "invalid") {
|
||||||
|
@unlink($tokenPath);
|
||||||
throw new \RuntimeException("Verification ended with error: ".json_encode($result));
|
throw new \RuntimeException("Verification ended with error: ".json_encode($result));
|
||||||
}
|
}
|
||||||
$ended = !($result['status'] === "pending");
|
$ended = !($result['status'] === "pending");
|
||||||
|
|||||||
Reference in New Issue
Block a user