nccgroup/tracy

Facebook workplace

jacobheath opened this issue · 1 comments

During 2fa form submission, Tracy breaks some of the params. Something must be off with prevent default changes

This was happening because using .submit turns out to be very different than click the submit button. The web was built with the idea that forms could have multiple submit buttions (edit, submit, delete) for the same action, but the button would indicate which specific form action. Because of this, .submit doesn't send hidden form input fields of type=submit because it doesn't know which button was clicked to submit the form. Since Tracy was submitting the forms with Javascript and not a button click, I needed to capture the original button click and embed it into the form so that all the form body parameters were submitted properly. This is fixed in 2e8d22f