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

Fix username regex #1082

Merged
merged 4 commits into from
Apr 24, 2024
Merged

Conversation

wunter8
Copy link
Contributor

@wunter8 wunter8 commented Apr 4, 2024

Now you can include a "+" in your username (for example, in an email alias).

I also added some code to convert the user/types.go ErrInvalidArgument into an errHTTPBadRequestInvalidArgument so that the error message in the web UI says "invalid request: invalid argument" instead of "internal server error."

I feel like that part of the PR isn't super clean, so you might want to rewrite it (all 6 lines)

server/server_account.go Outdated Show resolved Hide resolved
server/errors.go Outdated Show resolved Hide resolved
user/types.go Show resolved Hide resolved
@wunter8
Copy link
Contributor Author

wunter8 commented Apr 5, 2024

I'm planning to get to this today

@binwiederhier binwiederhier merged commit 31d0c81 into binwiederhier:main Apr 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants