update username regex, normalize usernames, add user info query

This commit is contained in:
creations 2025-03-06 08:30:18 -05:00
parent 774c8e22ce
commit 6fdc82dd49
Signed by: creations
GPG key ID: 8F553AA4320FC711
6 changed files with 127 additions and 7 deletions

View file

@ -66,7 +66,7 @@ export const userNameRestrictions: {
regex: RegExp;
} = {
length: { min: 3, max: 20 },
regex: /^[\p{L}0-9._-]+$/u,
regex: /^[\p{L}\p{N}._-]+$/u,
};
export const passwordRestrictions: {