ONSdigital/ras-frontstage

Registration form returns 500 error when submit button double clicked

andrewmil opened this issue · 0 comments

Sometimes when submitting the registration form a 500 server error page would be returned despite everything seemingly working correctly in the backend.

This is happening because if you accidentally press the submit button twice the form is submitted twice which causes a failure in the backend. The user is still registered successfully however with a verficiation email still being sent.