Web: 404 after logout at profile page

Created on 17 Apr 2018  路  2Comments  路  Source: gitcoinco/web

Description

Type: Bug

After logging out user is redirected to same page, which might result in 404 page.

Expected Behavior

User should be redirected to home page ?
Also accessing https://gitcoin.co/profile/ without being authorized should result in 401 page, not 404.

Reproduction

Logout at profile page or access https://gitcoin.co/profile/ being not logged in.

Most helpful comment

@kziemianek nice find! I wish there was a Bug Bounty program running right now, you'd be getting more ETH than Vitalik! 馃槀 馃憤

All 2 comments

@kziemianek nice find! I wish there was a Bug Bounty program running right now, you'd be getting more ETH than Vitalik! 馃槀 馃憤

@kziemianek This was my bad. I didn't modify the way we handle fetching profile information via /profile - Originally, we required a username to follow profile or default to the current user and 404ing if they don't exist or they don't have a profile... not so much an unauthorized situation.

Pushing in a fix for this now to redirect to home.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wizzfile picture wizzfile  路  3Comments

kziemianek picture kziemianek  路  3Comments

frankchen07 picture frankchen07  路  4Comments

Skyge picture Skyge  路  3Comments

jasonrhaas picture jasonrhaas  路  4Comments