healthchecks_healthchecks/templates/accounts
Pēteris Caune 18585d163d
Improve double-submit prevention in the TOTP form
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
2025-03-14 10:43:58 +02:00
..
add_credential.html Add a "Switch Project" menu in top navigation 2023-03-10 10:36:09 +02:00
add_project_modal.html Mark the project name textbox as required in the "Add Project" dialog 2024-11-13 14:27:15 +02:00
add_totp.html Improve double-submit prevention in the TOTP form 2025-03-14 10:43:58 +02:00
appearance.html Add a missing closing div tag 2024-04-15 15:33:55 +03:00
change_email.html Update the "Change Email" function to use confirmation codes 2020-11-16 15:33:29 +02:00
change_email_instructions.html Rename "sign in" to "log in" 2024-08-12 15:09:58 +03:00
check_token_submit.html {% site_name %} -> {{ site_name }} so we can use blocktrans tags for L10N 2020-07-21 17:59:39 +03:00
close_account.html Update the "Close Account" function to use confirmation codes 2020-11-16 16:22:25 +02:00
login.html Rename "sign in" to "log in" 2024-08-12 15:09:58 +03:00
login_link_sent.html Fix login and signup views to make email enumeration harder 2023-01-23 13:05:49 +02:00
login_totp.html Improve double-submit prevention in the TOTP form 2025-03-14 10:43:58 +02:00
login_webauthn.html Add a "Switch Project" menu in top navigation 2023-03-10 10:36:09 +02:00
notifications.html Add a "Switch Project" menu in top navigation 2023-03-10 10:36:09 +02:00
profile.html Make warnings about no backup second factor more assertive 2023-04-04 11:53:34 +03:00
project.html Fix Project.num_checks naming collision 2024-09-24 10:18:22 +03:00
remove_credential.html Add support for 2FA using TOTP 2021-07-30 16:43:23 +03:00
remove_totp.html Add support for 2FA using TOTP 2021-07-30 16:43:23 +03:00
set_password.html Update the "Set Password" page to reject very weak passwords 2024-08-15 12:04:28 +03:00
signup_result.html Fix login and signup views to make email enumeration harder 2023-01-23 13:05:49 +02:00
sudo.html Update the "Set Password" function to use confirmation codes 2020-11-16 14:53:50 +02:00
unsubscribe_submit.html Auto-submit the unsubscribe confirmation form only if signature is more than 5 minutes old. Idea from https://stackoverflow.com/questions/59281750/strategies-to-prevent-email-scanners-from-activating-unsubscribe-links/59381066#59381066 2019-12-18 16:10:30 +02:00
unsubscribed.html {% site_name %} -> {{ site_name }} so we can use blocktrans tags for L10N 2020-07-21 17:59:39 +03:00