Sign up without username and password

Sign up without username and password

by Оскар Верджинов -
Number of replies: 1

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?


Average of ratings: -
In reply to Оскар Верджинов

Re: Sign up without username and password

by Оскар Верджинов -
Since this is very specific, I managed to figure it out myself. If someone needs more info about this, I will post more info.