I think I managed to find the solution to your issue @gorgiselkov
I'm guessing you're using IIS but if not it might help as well.
Here: https://community.nodebb.org/post/72229
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 });