1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

fix: Fix password length validation

This commit is contained in:
Maksim Eltyshev 2022-08-30 15:13:17 +02:00
parent fe12dad655
commit 79e5f7f6f3

View file

@ -2,7 +2,7 @@ const PASSWORD_REGEX = /^(?=.*[A-Za-z])(?=.*\d).+$/;
const USERNAME_REGEX = /^[a-zA-Z0-9]+((_|\.)?[a-zA-Z0-9])*$/;
export const isPassword = (string) => {
return string.length >= 3 && PASSWORD_REGEX.test(string);
return string.length >= 6 && PASSWORD_REGEX.test(string);
};
export const isUsername = (string) => {