FOSUserBundle
FOSUserBundle copied to clipboard
Lack of email validation in console
Hi
I have tried to add new user like that:
Symfony > fos:user:create Please choose a username:XXX Please choose an email:NOT_EMAIL Please choose a password:XXX Created user xstream
I think I should rather got info that it is not a valid email address.
I suppose you could open a PR fixing this as it eould be quite easy, but IMO the command should only be used in development by a developer and not the an end user. The developer should know what he is doing when running the command.
the commands are indeed meant for developers as a way to create quickly a user. They don't check if the username or the email are available either for instance.
We could eventually validate the object before persisting it but validating things during the interaction will be hard IMO as we don't have the user yet to use the Validator component