Sritharan
Sritharan
FFilament
Created by Sritharan on 9/29/2024 in #❓┊help
Help Needed: Issues with Filament Custom User Approval and Logout Redirection
Hey everyone, I could use some help with a custom user approval implementation using Filament in my Laravel app. Here's the situation: I've set up a middleware to check user approval status after registration, which redirects unapproved users to a UserApprovalPrompt page. But I’m running into a few issues: The custom SimplePage for user approval doesn’t seem to attach correctly to the panel. When I try to log out from the approval page, it redirects me to the admin panel logout instead of my app’s logout. I'm also looking to show the user approval screen only after the email verification process. How can I implement this flow effectively? Here's a quick look at what I’ve done so far: Middleware for checking approval: CheckUserApproval SimplePage for the approval prompt: UserApprovalPrompt Panel setup in AppPanelProvider where I added the custom middleware. Any ideas on how I can fix the logout issue and get the approval screen to show after email verification?
2 replies