RegistrationTrait new entity validation
Closed this issue · 1 comments
viniciusbig commented
On the CakeDC\Users\Controller\Traits\RegisterTrait
the register method creates a new user Entity using
$user = $usersTable->newEntity([]);
This add the validation message in the registration form before submission.
It should be better if we use
$user = $usersTable->newEmptyEntity();
REF: https://book.cakephp.org/4/en/orm/entities.html#creating-entities
Does this make sense?
viniciusbig commented
I noticed there is a commit changing this
e73f8ca
nice!
its fixed in the 9.0.3