Unsure if plugin exists or how I'd do this if one doesn't
We have ingested an Excel spreadsheet's worth of users into our app. As one would expect, many of the fields are missing for various users. What we'd like to do is make it so that upon their next login, if any of these fields are currently
null
, they will be forced to go to their profile page to fill them out before they may continue using the site.
I don't need my hand held if a plugin like this doesn't exist, but I am still fairly new to Filament, so if you can even just point me in the general direction of intercepting a call to the dashboard, that should probably get me going. I looked through the docs and couldn't find anything that seemed to match my searching, but maybe I just wasn't using the correct terms?
Thanks!Solution:Jump to solution
Ok for anyone who ends up finding this in the future, I ended up making a middleware that checks if any of the fields are null (and that they're not currently trying to access the profile edit page), and if so, redirects them to the profile edit page.
2 Replies
Solution
Ok for anyone who ends up finding this in the future, I ended up making a middleware that checks if any of the fields are null (and that they're not currently trying to access the profile edit page), and if so, redirects them to the profile edit page.
It seems to work fine.