1
Fork 0
mirror of https://github.com/RGBCube/cinny synced 2025-07-31 17:07:47 +00:00

Fixed login username regex

This commit is contained in:
unknown 2021-07-28 21:10:47 +05:30
parent 026f835a87
commit 896738dc22

View file

@ -13,7 +13,7 @@ import Spinner from '../../atoms/spinner/Spinner';
import CinnySvg from '../../../../public/res/svg/cinny.svg';
const USERNAME_REGEX = /^[a-z0-9_-]+$/;
const USERNAME_REGEX = /^[a-z0-9_\-.=/]+$/;
const BAD_USERNAME_ERROR = 'Username must contain only lowercase letters, numbers, dashes and underscores.';
const PASSWORD_REGEX = /.+/;