Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Prevent user registration form from saving password_confirmation #10228

Merged

Conversation

ryanmitchell
Copy link
Contributor

@ryanmitchell ryanmitchell commented May 30, 2024

Someone reported on discord that the changes to the RegisterController / UserRegisterRequest have meant that the password_confirmation is being saved - in eloquent this causes issues as the column doesn't exist, and when file based this adds it to the yaml which it definitely shouldn't.

This PR updates the except in the form request to exclude it from being saved.

Copy link
Member

@jasonvarga jasonvarga left a comment

Choose a reason for hiding this comment

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

Thank you. This was not an issue if using eloquent as there would be column not found error.

@jasonvarga jasonvarga force-pushed the fix/dont-save-password-confirmation branch from fbd0744 to ba8024a Compare May 30, 2024 14:18
@jasonvarga jasonvarga merged commit 0b80430 into statamic:5.x May 30, 2024
32 checks passed
@ryanmitchell ryanmitchell deleted the fix/dont-save-password-confirmation branch July 16, 2024 11:26
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