mirror of
https://github.com/anikeen-com/yaac.git
synced 2026-03-13 13:46:10 +00:00
Merge pull request #29 from TheDevilOnLine/patch-1
Don't sleep when validation succesfull
This commit is contained in:
@@ -297,7 +297,7 @@ class Client
|
||||
$this->signPayloadKid(null, $challenge->getAuthorizationURL())
|
||||
);
|
||||
$data = json_decode((string)$response->getBody(), true);
|
||||
if ($maxAttempts > 1) {
|
||||
if ($maxAttempts > 1 && $data['status'] != 'valid') {
|
||||
sleep(ceil(15 / $maxAttempts));
|
||||
}
|
||||
$maxAttempts--;
|
||||
|
||||
Reference in New Issue
Block a user