Redirect on sign out

Topics: General
May 1, 2014 at 6:24 PM
I'm finding my way around the dashboard and just implemented security on individual pages, which by they way, works really well. I set up a test page and prohibited non authenticated (logged in) users. When I signed out Orchard tried to refresh my current page, which was the test page. Of course it couldn't because as soon as I signed out I lost my permission to see the page and I was shown, rightly, an error message.

Its not that much of a problem but it is a bit untidy. I was thinking that it would be nice to be able redirect the user to the homepage or similar when they sign out. I couldn't see that was possible, would it be a candidate for a future workflow?

Moderator, please move this post as you see fit, wasn't sure where to post it.
Developer
May 2, 2014 at 5:07 PM
You could implement IUserEventHandler to handle the LoggedOut() event and e.g. do a redirect.