Skip to content

Fix RecaptchaV3HiddenInput token generation interval#107

Open
MSchreijen wants to merge 3 commits into
TimothyMeadows:masterfrom
MSchreijen:master
Open

Fix RecaptchaV3HiddenInput token generation interval#107
MSchreijen wants to merge 3 commits into
TimothyMeadows:masterfrom
MSchreijen:master

Conversation

@MSchreijen
Copy link
Copy Markdown

When generating the token, every time the interval executed, a new interval was set up. This lead to client browser sending a massive amount of requests after being on the page for a little bit (it kept growing exponentially). This change fixes this by pulling the interval setup outside of the function, then calling the function once and setting up an interval which calls the function every 100 seconds.

Merijn Schreijen added 3 commits November 28, 2024 09:03
Used to set up an interval everytime the interval executes. Now only sets up the interval once.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant