mirror of
https://github.com/healthchecks/healthchecks.git
synced 2025-03-14 12:22:52 +00:00
![]() Chrome users could submit the form multiple time by entering the TOTP code and then pressing Enter key, or clicking the onscreen submit button. This would be less likely on low latency connections (because auto-submit would complete before the user presses Enter key) but quite doable on high latency connections. The fix is to attach an event handler to form's "onsubmit" events. The handler lets the first event through, and call preventDefault() on subsequent events. This takes care of: * programmatic submits by calling form.requestSubmit() * Enter key in an input field * click on the onscreen submit button |
||
---|---|---|
.. | ||
add_credential.html | ||
add_project_modal.html | ||
add_totp.html | ||
appearance.html | ||
change_email.html | ||
change_email_instructions.html | ||
check_token_submit.html | ||
close_account.html | ||
login.html | ||
login_link_sent.html | ||
login_totp.html | ||
login_webauthn.html | ||
notifications.html | ||
profile.html | ||
project.html | ||
remove_credential.html | ||
remove_totp.html | ||
set_password.html | ||
signup_result.html | ||
sudo.html | ||
unsubscribe_submit.html | ||
unsubscribed.html |