1
In the system, the user registration will not be free. Each user will be invited by email by administrator to participate.
In the user table I have, briefly, the following attributes:
$table->increments('id')->unsigned();
$table->string('nome', 45);
$table->string('email', 64)->unique();
$table->string('username', 45)->nullable();
$table->string('senha', 20)->nullable();
$table->string('codigo', 100)->nullable();
$table->boolean('ativo')->default(false);
I never worked with this kind of confirmation, so I imagined the following algorithm (sequence):
To invite a user, the administrator must complete the name and email of the guest.
Therefore, the guest user will receive an email with the invitation.
In the forwarded email, there will be a link that points to the route: hostname/code (where code is an attribute with unique content for each guest user).
If this route is accessed the user becomes active in the system.
Would this step-by-step user authentication be relatively correct? And the password? It would be convenient to administrator set an initial password for the guest? I need ideas.
I think these steps are on the right track, make a password or let the user set the password is at your discretion, in fact there is no "problem" to be solved in this question, it was wide, see if you can reformulate, before you go to the suspension queue.
– SneepS NinjA