Skip to content

Conversation

@rtibbles
Copy link
Member

@rtibbles rtibbles commented Dec 1, 2025

Summary

Adds extra handling for potential IntegrityError when attempting to create a user
Adds frontend submission blocking
Adds a backend test and frontend test for each behaviour
Fixed a typo in the backend tests for user registration (pasword instead of password)

References

Fixes #4779

Reviewer guidance

🤖 This was created by Claude Code. @rtibbles then reviewed the generated output, and did iterative rounds of updates before making it ready for review 🤖

Manual tests:
Load the account creation page
Turn network throttling on in the Network tab of the browser
Create an account and try to click the submit button multiple times

To make absolutely sure of the backend fix you can also disable the 'submission prevention' code in the frontend, then do the same just to test the backend - I was not able to replicate the 500 from the Sentry error doing this, even without the fixes, but I suspect this may be because of the single threaded devserver environment.

Copy link
Member

@AllanOXDi AllanOXDi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested it manually, and it fixes the problem, but I have one ' what if' concern about exception handling.

@AllanOXDi AllanOXDi self-requested a review December 5, 2025 19:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants