username/display_name/video_channel_name min length 1 and max length 50 (#1265)
authorBRAINS YUM <43896676+McFlat@users.noreply.github.com>
Fri, 7 Dec 2018 13:54:33 +0000 (07:54 -0600)
committerChocobozzz <me@florianbigard.com>
Fri, 7 Dec 2018 13:54:33 +0000 (14:54 +0100)
commitd0ce42c1c17054b7e0c5081243152c32ecb1c193
treeb68c434203b2cd43f8b739e9d540b174faebb27e
parentf3e4d594080e2ae727da07e9d3febf5b6ce5cb75
username/display_name/video_channel_name min length 1 and max length 50 (#1265)

* make username, display_name and video_channel_name min length 1 and max length 50; (fixes #1263);
    ! still some bug on the frontend complains but if you remove the disabled property it creates the account just fine;
allow for usernames to start with a number;
fix test, since username can be 1 char now make test check empty;
fix test, Should fail with a too long username;
fix test, Should fail with a too small username;
fix regular expression for username and videoChannel;
change username, videoChannel to be lowercase and fix message;

* change 1 characters to 1 character
client/src/app/shared/forms/form-validators/user-validators.service.ts
client/src/app/shared/forms/form-validators/video-channel-validators.service.ts
server/initializers/constants.ts
server/tests/api/check-params/users.ts