Skip to content
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

Visiting user page redirects to login #418

Open
Tracked by #455 ...
pral2a opened this issue Apr 29, 2020 · 7 comments
Open
Tracked by #455 ...

Visiting user page redirects to login #418

pral2a opened this issue Apr 29, 2020 · 7 comments
Assignees
Labels

Comments

@pral2a
Copy link
Member

pral2a commented Apr 29, 2020

Expected behaviour

When searching for a user and clicking on it I want to see the user profile even when I am not logged in

Actual behaviour

When searching for a user and clicking on it I'm redirected to login

How to reproduce?

issue

@viktorsmari
Copy link
Collaborator

Works fine for me (not logged in) on Linux, both Chromium and Firefox

@tuengominh
Copy link
Contributor

I also don't have the issue. I can see the user profile when I am not logged in (Chrome and Safari).

@pral2a
Copy link
Member Author

pral2a commented Apr 30, 2020

I found the issue. It looks like it's linked to the auth cookie persisting in your browser even after you logged out. Just deleted all the site cookies and the issue vanished away.

So it might be linked with the log out function.

function logout() {
$cookies.remove('smartcitizen.token');
}

Could you try to replicate the issue?

@tuengominh
Copy link
Contributor

tuengominh commented Apr 30, 2020

Hi @pral2a!

I couldn't reproduce the issue, before and after clearing my browsing data. Actually, is that what you mean?

@pral2a
Copy link
Member Author

pral2a commented Apr 30, 2020

Yes, log in, log out and then do a search to visit a user profile. It it fails then clear the cookies and try it again.

@tuengominh
Copy link
Contributor

Hi @pral2a

Sorry for getting back late to this. I tried to replicate the issue by logging in, logging out, and then searching to visit a user profile, but it worked fine for me. Do you still have the same issue?

Thanks

@oscgonfer oscgonfer mentioned this issue Jan 29, 2024
2 tasks
@oscgonfer
Copy link
Contributor

@pral2a this is what I was referring to before. The issue is still there, reproduced with firefox, chrome in linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants