How can I redirect user to a URL after successful Logout?
-
I'm using an SSO plugin that I created based on the current Github SSO plugin. I have disabled local login so login will be through my SSO plugin only. I need to redirect the user to a special logout URL after they logout of nodebb so that it logs them out of our SSO service. Is it possible to do through a filter or action?
@baris @psychobunny @julian (sorry hehe )
-
app.logout
is the global method that handles the logout code on the client sideYou can override this method and run your own code.
... actually, looking at that, it might not work...
Try this instead:
components.get('user/logout').off('click').on('click', function() { // your custom behaviour here });
-
interstitial launch based on intent?
Not exactly what you were looking for, but a workaround to show an arbitrary URL.
something like:
https://github.com/brettdewoody/jQuery-Interstitial
(lost track of the one that I had set aside with intent built-in.)