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

View File

@@ -33,7 +33,7 @@ const isPassword = (value) => zxcvbn(value).score >= 2; // TODO: move to config
const isEmailOrUsername = (value) =>
value.includes('@')
? validator.isEmail(value)
: value.length >= 3 && value.length <= 16 && USERNAME_REGEX.test(value);
: value.length >= 3 && value.length <= 32 && USERNAME_REGEX.test(value);
const isDueDate = (value) => moment(value, moment.ISO_8601, true).isValid();