sendEmailVerificationNotification (Admin created users)
In my app the admin registers the users, ie the registration page is disabled. I enabled MustVerifyEmail however that does not trigger emails to go out. I found a workaround to send the emails however when the user clicks the link it always says invalid signature and I do not understand why. If the user simply tries to login without clicking the link in the email, they are presented with the resend email, which then works. Any help on how to properly send the verify email notification when an admin creates another user would be greatly appreciated.
6 Replies
Some progress - I added the below to routes/web.php but I would have assumed this should be added by filament should it not?
They are added by Filament if you use
->emailVerification() on the Panel.
however when the user clicks the link it always says invalid signature and I do not understand whyThis might happen when you have a redirect. E.g. Your app uses https but emails are sent out with http. Or a trailing slash is removed.
->emailVerifcation is used on the panel. I can also see in the routes list. but that does not align with what the app is looking for (ie verification.verify)
For some reason its trying to use the default laravel route?!
Search your codebase for that route. Maybe you used it somewhere else?
No, search revealed no use other than what I had copied in - can you confirm that on a clean install with ->emailVerification() [NOT registration()] this is functioning?! ie it is picking up filament.admin.auth.email-verification.verify rather than verification.verify as the route?
I just did this a week ago and didn't have any issues.
Ah wait. You probably use the wrong
VerifyEmail.
Filament\Auth\Notifications\VerifyEmail not Illuminate\Auth\Notifications\VerifyEmail