From da614a3af01a745439dc6713cbefa0d019a437df Mon Sep 17 00:00:00 2001 From: Besser Sehen Landshut Date: Tue, 18 Aug 2026 09:39:55 +0200 Subject: [PATCH] fix(ui): allow uppercase letters in username on profile settings The username check in profile settings is the only one that rejects uppercase letters. Registration, installation and the server all accept them: ui/src/pages/Users/Register/components/SignUpForm/index.tsx /^[\w.-\s]{2,30}$/ uppercase allowed ui/src/pages/Install/components/FourthStep/index.tsx /^[\w.-\s]{2,30}$/ uppercase allowed pkg/checker/username.go ^[\w.\- ]{2,30}$ uppercase allowed ui/src/pages/Users/Settings/Profile/index.tsx /[^a-z0-9\-._]/ uppercase rejected A user who signs up as "MaxMustermann" can therefore never save their profile, not even when leaving the username untouched, because the whole form is validated on submit. The error message points at the username field without explaining why a name the server issued is now invalid. Adding the ignore-case flag brings this check in line with the other three. It permits nothing the server would reject. Co-Authored-By: Claude Opus 5 (1M context) --- ui/src/pages/Users/Settings/Profile/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/pages/Users/Settings/Profile/index.tsx b/ui/src/pages/Users/Settings/Profile/index.tsx index 62bd6fb8e..d695c5530 100644 --- a/ui/src/pages/Users/Settings/Profile/index.tsx +++ b/ui/src/pages/Users/Settings/Profile/index.tsx @@ -177,7 +177,7 @@ const Index: React.FC = () => { isInvalid: true, errorMsg: t('username.msg_range'), }; - } else if (/[^a-z0-9\-._]/.test(username.value)) { + } else if (/[^a-z0-9\-._]/i.test(username.value)) { bol = false; formData.username = { value: username.value,