From 886f54871369557a2749220ab6db0c0bc53505d5 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Sun, 25 Sep 2022 15:39:54 +0200 Subject: [PATCH] fix off by one error in username legth limit --- app/src/frontend/user/signup.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/frontend/user/signup.tsx b/app/src/frontend/user/signup.tsx index ac77cc79..153bb99d 100644 --- a/app/src/frontend/user/signup.tsx +++ b/app/src/frontend/user/signup.tsx @@ -47,7 +47,7 @@ export const SignUp: React.FC = () => { value={username} onChange={e => setUsername(e.target.value)} placeholder="not-your-real-name" required minLength={4} - maxLength={30} + maxLength={29} pattern="\w+" title="Usernames can contain only letters, numbers and the underscore" />