mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[PR #1082] [MERGED] Fix username regex #1510
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#1510
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/1082
Author: @wunter8
Created: 4/4/2024
Status: ✅ Merged
Merged: 4/24/2024
Merged by: @binwiederhier
Base:
main← Head:fix-username-regex📝 Commits (4)
e4d22eballow + in usernamesfc7cf59fix error message for invalid username/passworde4c2b93clean up invalid username code4111beefix linting issue📊 Changes
4 files changed (+18 additions, -1 deletions)
View changed files
📝
server/errors.go(+1 -0)📝
server/server_account.go(+4 -0)📝
user/types.go(+1 -1)📝
user/types_test.go(+12 -0)📄 Description
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)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.