-
Notifications
You must be signed in to change notification settings - Fork 73
Description
I implemented the widget in the Laravel starter kit to try it.
It works perfectly, except for the “refetchonexpire” option.
altcha.js reloads the challenge every 10 seconds.
I have set the challenge expiration to 10 seconds (new \DateTimeImmutable())->add(new \DateInterval('PT10S'))
<altcha-widget challengeurl="CHALLENGE_URL" refetchonexpire="false"></altcha-widget>
The same thing happens when I add the option expire="10000" to the altcha-widget.
<altcha-widget challengeurl="CHALLENGE_URL" expire="10000" refetchonexpire="false"></altcha-widget>
Info: altcha.js is loaded in the body and not in the head of the document.
My temporary patch on altcha.js line 2149
s() && Rn() && a(I) === w.VERIFIED ? Pe() : Qe(w.EXPIRED, a(P).expired);
to
s() && false && a(I) === w.VERIFIED ? Pe() : Qe(w.EXPIRED, a(P).expired);