mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 03:48:23 +00:00
36b4712349
25563357 moved the logout redirect logic from the client-side to the server-side. Unfortunately the login_required check was lost during the refactoring which meant that non-login-required sites would redirect to `/login` after redirect, and immediately restart the login process. Depending on the SSO implementation, that can make it impossible for users to log out cleanly. This commit restores the login_required check, and prevents the potential redirect loop.