I need to create a simple registration form with only email, firstname and lastname fields. In theory, user could enter his email, and then automatically generated password will be sent to his email address with confirmation link.
I made a custom email based registration plugin using this guide, so I can edit my form any way I want.
When I remove login and password fields or remove requirements (like addRule), I can't go further, theese fields are still required.
How to remove those requirements? Where am I supposed to add the code to set $user->username = $user->email? How to send password in email?