emailVerification with Tenant panel problem.

Hi. If the user creates an account in a non-tenant panel, then /user/email-verification/prompt is shown. Great. But if I add ->tenant(Team::class) to the panel, the user is redirected to / when creating account. How can I fix this?
5 Replies
Mark Chaney
Mark Chaney2mo ago
Did you resolve this? I have the same issue. Of course the user gets a 403 after they register because they get routed to / and verification is required. emailVerification() is indeed setup on the panel too.
Sidji
Sidji2mo ago
If I get it correctly. You can create a separate panel for it. the main panel should only be for authentication, register and email verification and etc. and does not have a ->tenant(). and once authenticated you can redirect on the second panel using the middleware. you can opt the second panels login to use the main panel's login page. ->login(fn () => redirect(Filament::getPanel('admin')->login()->getUrl()))
No description
No description
Sidji
Sidji2mo ago
if you configured the subdomain correctly. I think it should fallback to you domain like this. https://yourdoman.test/tenant/login
Mark Chaney
Mark Chaney2mo ago
that seems rather silly in my opinion. Feel like filament should handle this in a simpler fashion i do appreciate the idea though
PabloZagni
PabloZagniOP2mo ago
No.... Sidji response is a solution for now... but not what we expect
Want results from more Discord servers?
Add your server