Custom registration and email verification
I want to add the phone of the user as a field inside the original registration form. I tried using a custom registration form and it worked but i dont know how to send the verification email during registration. When the user registers, he/she is redirected to the verification prompt (as i want) but the email is never delivered. If i click the "resend email" it works like charm. What gives?
Solution:Jump to solution
The reason is because you override the same register function . I think based practice is remove that function and replace with code below
protected function handleRegistration(array $data): Model
{
...
2 Replies
Solution
The reason is because you override the same register function . I think based practice is remove that function and replace with code below
protected function handleRegistration(array $data): Model
{
$user = $this->getUserModel()::create($data);
return $user; } This one work for me
return $user; } This one work for me
Hey @Expecto Patronum thank you so much for this! This fixes the issue and everything works as expected!