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

Usernames involving special symbols (email, etc.) can't log in / view userpage #807

Open
calculuschild opened this issue Nov 19, 2018 · 6 comments
Labels
bug We say this works but it doesn't needs more info

Comments

@calculuschild
Copy link
Member

calculuschild commented Nov 19, 2018

Seems to occur occasionally. Creating this issue to centralize the related threads:

#662, #555, #547, #401, #349

@ericscheid
Copy link
Collaborator

Closing #764, re-opening this as not resolved(?)

@ericscheid ericscheid reopened this Nov 14, 2020
@ericscheid ericscheid added the bug We say this works but it doesn't label Nov 14, 2020
@calculuschild
Copy link
Member Author

Good catch. I probably closed this by accident when I linked it to the other duplicate.

@ericscheid
Copy link
Collaborator

Clicking on my name in the top right corner does nothing but bring me to the same welcome example page thing with all the instructions on it.

Currently, I seem to be unable to access my user profile. When I try and access my profile by clicking on my email in the top right corner, I'm sent back to the main page instead of my user page, meaning I can't access any of the brews that I've currently made or any I make in future. I've tried this on chrome and firefox and I've got the same issue on each browser.


However this link works, revealing a published brew: https://homebrewery.naturalcrit.com/user/[email protected]

image

So, maybe usernames as emails work .. but that says nothing about other edge cases so leaving open.

Note however that the username is case-sensitive: https://homebrewery.naturalcrit.com/user/[email protected]

image

We need more examples of failures.

@calculuschild
Copy link
Member Author

calculuschild commented Nov 14, 2020

I think the link generated in the profile button is url encoded, turning the @ symbol into %40 or whatever. We just need to make the button not do that. Or unencode the name in the url before searching for the user profile.

@ericscheid
Copy link
Collaborator

https://github.com/naturalcrit/homebrewery/blob/master/client/homebrew/navbar/account.navitem.jsx#L23-L25

return <Nav.item href={`/user/${global.account.username}`} color='yellow' icon='fa-user'>
	{global.account.username}
</Nav.item>;

@5e-Cleric
Copy link
Member

naturalcrit/naturalcrit#63 is also interesting to solve this and prevent similar issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug We say this works but it doesn't needs more info
Projects
None yet
Development

No branches or pull requests

3 participants