-
Notifications
You must be signed in to change notification settings - Fork 924
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Login page does not check if a user is logged in #5441
Comments
It works as expected as long as we're allowing using the login page without logging out first. |
Quite this is behaving as intended but the user has changed context behind the site's back - the page was rendered in one context with a set of cookies that indicated the user is logged in and the user then switched to a different context with different cookies which is not really a supported thing to do. Being able to go to the login page without having to logout first is actually quite useful for administrators so I'm reluctant to get rid of that to support this one extremely obscure use case. |
We can add a message to the login page that you're already logged in. And if there's a referrer, we can add a link to that page. |
That is a good solution, given the fact the current behavior is useful to some people.
Just for the record, the change is not "behind the site's back". When switching containers, a new tab is opened and the page is loaded again. |
URL
https://www.openstreetmap.org/login?referer=%2Fedit%3Frelation%3D15090094#map=19/33.411025/-114.923289
How to reproduce the issue?
The expected behavior would be to check if the user is logged in already and if he is, redirect him to the
referer
or to the main page.The bug appears in Firefox when using multi-account-containers. I don't know if it's reproducible in other browsers.
Screenshot(s) or anything else?
The text was updated successfully, but these errors were encountered: