fablabbcn/smartcitizen-web

Visiting user page redirects to login

Opened this issue · 7 comments

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

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

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

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?

Hi @pral2a!

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

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.

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

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