Skip to content

Update registration endpoint to use db transaction to avoid integrity… - #340

Open
jabelone wants to merge 2 commits into
devfrom
bug/signup-integrity-error
Open

Update registration endpoint to use db transaction to avoid integrity…#340
jabelone wants to merge 2 commits into
devfrom
bug/signup-integrity-error

Conversation

@jabelone

Copy link
Copy Markdown
Member

Fixes a bug where the database gets into a broken state if the user model is created successfully but the profile one fails for some reason. Wraps both into a single database transaction to ensure integrity.

… issues

also changed duplicate email error to generic error to mitigate against potential username/email enumeration attacks
@github-actions

Copy link
Copy Markdown

Created image with name membermatters/membermatters:untrusted-pr-image-membermatters-bug-signup-integrity-error. WARNING: run this image at your own risk - it was created from a potentially untrusted PR.

@github-actions

Copy link
Copy Markdown

Created image with name membermatters/membermatters:untrusted-pr-image-membermatters-bug-signup-integrity-error. WARNING: run this image at your own risk - it was created from a potentially untrusted PR.

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.

1 participant