The discussion revolves around the issue of logging out while impersonating a user, without dismissing their notifications. downey suggests adding a log out link in a less disruptive location. DeanMarkTaylor proposes a workaround by using a Chrome Incognito window or visiting /session/sso if the instance uses SSO. sam points out that logging out can log the user out everywhere, but downey mentions that their instance has the log out strict site setting disabled.
sam suggests a site customization to add a log out link to the hamburger menu, but downey thinks it’s a good fit conceptually. codinghorror mentions a keyboard shortcut, which is revealed to be Shift+Z by DeanMarkTaylor. pfaffman explains that the shortcut is not a single Z to avoid accidental logout, and that it’s inspired by the vi editor.
The discussion also touches on the idea of adding a log out link to the hamburger menu, with DeanMarkTaylor providing an example customization. However, the consensus seems to be that logging out is not a common action and should not be easily accessible.
Once again we had a complaint that someone can’t log out without dismissing notification count. This really stinks.
This is also a problem when impersonating a user, because you can’t stop the impersonation session without dismissing their notifications without their permission.
Question: How can we add a log out link in a place that won’t be so disruptive?
This specifically avoids executing the “logout” which would log users out of all sessions on all devices.
EDIT:
Alternatively if the Discourse instance uses SSO against another authentication provider then you can just visit '/session/sso` and that will log you back in as yourself.
EDIT: I went back and looked and yes, it was always under the user icon, but the notifications had their own menu and weren’t there to get in the way of account actions back in the day.