FilamentF
Filamentβ€’2y ago
RuZZZZ

user registration->email verification?

Hey guys!

Very simple expectations:

User registers, gets an email, verifies email, access to panel granted.

Until email is verified, can see a simple page that requires email verification and logout button.

I added:

->login()
->registration()
->passwordReset()
->emailVerification()
Also, in user:

class User extends Authenticatable implements FilamentUser, MustVerifyEmail

public function canAccessPanel(Panel $panel): bool
{
return $this->hasVerifiedEmail();
}
Once I register, I a get 403, also, I get an email from laravel, but can't verify, when link clicked, I also get 403 πŸ™‚
https://my.domain.com/app/email-verification/verify/6/9cfe7a9376fb486b8ca0f44e7a1Ks9d90edbab?expires=1717465822&signature=cf90b6332309279d89ab36586c81e1161d9c0b5700598cfca6e0765f2e065430

Is there any good paper/document/tutotial on how to implement this? I checked website/s, this discord, reddit, chatgpt, claude πŸ™‚

Thanks!
Was this page helpful?