Page MenuHomePhabricator

Using JS to prevent double html form submissions
Open, MediumPublic

Description

Double clicking "submit" very quickly on ChangePassword/ResetPassword/Preferences causes "CAS update failed on user_touched for user ID '25080093' (read from slave); the version of the user to be saved is older than the current version." There is no use in sending duplicate requests. This should be debounced by locking the button.

Event Timeline

aaron raised the priority of this task from to Needs Triage.
aaron updated the task description. (Show Details)
aaron added subscribers: aaron, Krinkle.
Krinkle renamed this task from Using JS to prevent double form submissions to avoid CAS errors to Using JS to prevent double html form submissions.Dec 15 2015, 12:05 AM
Krinkle set Security to None.

The CAS token issue is resolved with locking per T95839, but we should still avoid these double posts to begin with.

Krinkle triaged this task as Medium priority.Dec 15 2015, 12:06 AM