Currently we are saving an user entity with some not validated fields on the registration form

Created on 8 December 2016, over 7 years ago
Updated 21 January 2023, over 1 year ago

Problem/Motivation

RegisterForm::submitForm is doing changes in the form state and building the entity again, but those changes were not present in the validation phase so the built user entity has not been completely validated and as a result we are saving not completely validated user entity.

Proposed resolution

Move the changes we are doing in RegisterForm::submitForm to RegisterForm::buildEntity to ensure we are always saving a completely validated user entity.

Remaining tasks

None.

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Needs work

Version

10.1 ✨

Component
User systemΒ  β†’

Last updated 1 day ago

Created by

πŸ‡©πŸ‡ͺGermany hchonov πŸ‡ͺπŸ‡ΊπŸ‡©πŸ‡ͺπŸ‡§πŸ‡¬

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.69.0 2024