fix: Increase max username length

Closes #1441
This commit is contained in:
Maksim Eltyshev
2025-11-25 15:03:35 +01:00
parent 8a288d1816
commit c646f0f5b3
7 changed files with 10 additions and 10 deletions
@@ -221,7 +221,7 @@ const AddStep = React.memo(({ onClose }) => {
ref={handleUsernameFieldRef}
name="username"
value={data.username}
maxLength={16}
maxLength={32}
readOnly={isSubmitting}
className={styles.field}
onChange={handleFieldChange}
@@ -172,7 +172,7 @@ const EditUserUsernameStep = React.memo(({ id, onBack, onClose }) => {
name="username"
value={data.username}
placeholder={username}
maxLength={16}
maxLength={32}
className={styles.field}
onChange={handleFieldChange}
/>
+1 -1
View File
@@ -18,4 +18,4 @@ export const isUrl = (string) =>
export const isPassword = (string) => zxcvbn(string).score >= 2; // TODO: move to config
export const isUsername = (string) =>
string.length >= 3 && string.length <= 16 && USERNAME_REGEX.test(string);
string.length >= 3 && string.length <= 32 && USERNAME_REGEX.test(string);