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

[4.x]: Front end user registration not returning proper errors. User gets added even if expected to fail. #13596

Closed
0xElectric opened this issue Aug 24, 2023 · 2 comments

Comments

@0xElectric
Copy link

0xElectric commented Aug 24, 2023

What happened?

Description

Front end user registration not returning proper errors.
Only returns the error for password field.

Steps to reproduce

  1. Copy code from https://craftcms.com/knowledge-base/front-end-user-accounts#registration-form
  2. Click 'Register' button

Expected behavior

This should at least return Username is required, Email is required and New Password* should contain at least 6 characters..
And not add the user to system since it's a failed registration.

Actual behavior

Only returns New Password* should contain at least 6 characters..
User gets added to the system even if a failed registration.

Craft CMS version

Craft Pro 4.4.17 to Craft Pro 4.5.1

PHP version

8.0.29

Operating system and version

Linux 6.2.0-26-generic

Database type and version

MariaDB 10.3.39

Image driver and version

No response

Installed plugins and versions

EDIT:
only happens when Deactivate users by default is checked and password is provided in the registration form.

@brandonkelly
Copy link
Member

Thanks for reporting that! Craft 4.5.2 is out with a fix.

@0xElectric
Copy link
Author

Thank you for the quick fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants