+
Skip to content

refetchonexpire not works #130

@S0llarCode

Description

@S0llarCode

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载