Skip to content

fix(register): include username when creating user#7830

Open
shivaansh0610-LUFFY wants to merge 3 commits intoplone:mainfrom
shivaansh0610-LUFFY:fix-registration-username
Open

fix(register): include username when creating user#7830
shivaansh0610-LUFFY wants to merge 3 commits intoplone:mainfrom
shivaansh0610-LUFFY:fix-registration-username

Conversation

@shivaansh0610-LUFFY
Copy link

@shivaansh0610-LUFFY shivaansh0610-LUFFY commented Jan 29, 2026

What this does

The registration form did not include the required username field
When creating a user, which caused the backend to reject the request.

This change adds username (derived from the email) to the payload
sent to the createUser action.

Why this is needed

plone.restapi requires a username when creating users.
Without it, registration fails with a validation error.

How to test

  1. Go to the registration form
  2. Submit fullname + email
  3. Verify that user creation succeeds

Contributes to #6987

@mister-roboto
Copy link

@shivaansh0610-LUFFY you need to sign the Plone Contributor Agreement to merge this pull request.

Learn about the Plone Contributor Agreement: https://plone.org/foundation/contributors-agreement

If you have already signed the agreement, please allow a week for your agreement to be processed.
Once it is processed, you will receive an email invitation to join the plone GitHub organization as a Contributor.

If after a week you have not received an invitation, then please contact agreements@plone.org.

@mister-roboto
Copy link

@shivaansh0610-LUFFY you need to sign the Plone Contributor Agreement to merge this pull request.

Learn about the Plone Contributor Agreement: https://plone.org/foundation/contributors-agreement

If you have already signed the agreement, please allow a week for your agreement to be processed.
Once it is processed, you will receive an email invitation to join the plone GitHub organization as a Contributor.

If after a week you have not received an invitation, then please contact agreements@plone.org.

@shivaansh0610-LUFFY
Copy link
Author

CLA has been signed and processed.
Happy to update anything else or rebase if needed.

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.

2 participants