try both but same result,i have no idea why i just installed today and everythings are running at lastest version
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.) -
@Dustin-Falgout You probably have to do both of the things I listed above.
Overriding
app.logout
is useful because app.logout is still called in certain places. The.off().on()
bit just re-maps the logout link to the new method -
-
@julian I am building a theme & like to override the logout behaviour. It would be great, if you could tell me how
components
becomes available? -
@livey0u It is just a requirejs module so just require it.
require(['components'], function (components) { components.get('user/logout').off('click').on('click', function() { // your custom behaviour here }); });