#76120rsaauth does not submit the name of the submit-button
Description
Currently rsaauth does not submit the name of the clicked submit-button. If a form has multiple submit buttons, the name is needed to differentiate on the server-side which button was clicked.
This happens because rsaauth calls preventDefault on the submit-event and then resubmits the form (without adding the submit-button name):
https://github.com/TYPO3/TYPO3.CMS/blob/a8ca5f0e7447610c10b4dfad04919f0864ebc950/typo3/sysext/rsaauth/Resources/Public/JavaScript/RsaEncryption.js#L111
This leads to a bug in sr_feuser_register which prevents editing of user-data. The Controller looks, if the name of the submit-button is within the POST-Data to check if the form was submitted.
A fix might be to remember the last-clicked submit-button in the form before preventing the submit-event. If no button was clicked (when the user pressed enter in a form field), the name of the first found submit-button should be used. This is the default browser-behavior.
Reviews 7
- main 56412[WIP][BUGFIX] Streamline RsaAuth login behavior
- TYPO3_8-7 56088[BUGFIX] Simulate submit button for rsaauth form submit
- TYPO3_7-6 56104[BUGFIX] Simulate submit button for rsaauth form submit
- main 48371[BUGFIX] Simulate submit button for rsaauth form submit
- main 56142[BUGFIX] Trigger submit of RSA encrypted form properly
- TYPO3_8-7 56143[BUGFIX] Trigger submit of RSA encrypted form properly
- TYPO3_7-6 56144[BUGFIX] Trigger submit of RSA encrypted form properly