From 9f7a19536376657e12e453f2eab656f5f95678a8 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 13 Dec 2018 16:25:15 +0100 Subject: Keep old channel/user name constraints In order to avoid compatibility issues --- server/initializers/constants.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/initializers/constants.ts') diff --git a/server/initializers/constants.ts b/server/initializers/constants.ts index f1a734f48..6971ab775 100644 --- a/server/initializers/constants.ts +++ b/server/initializers/constants.ts @@ -302,7 +302,7 @@ const CONFIG = { let CONSTRAINTS_FIELDS = { USERS: { - NAME: { min: 1, max: 50 }, // Length + NAME: { min: 1, max: 120 }, // Length DESCRIPTION: { min: 3, max: 1000 }, // Length USERNAME: { min: 1, max: 50 }, // Length PASSWORD: { min: 6, max: 255 }, // Length @@ -318,7 +318,7 @@ let CONSTRAINTS_FIELDS = { REASON: { min: 2, max: 300 } // Length }, VIDEO_CHANNELS: { - NAME: { min: 1, max: 50 }, // Length + NAME: { min: 1, max: 120 }, // Length DESCRIPTION: { min: 3, max: 1000 }, // Length SUPPORT: { min: 3, max: 1000 }, // Length URL: { min: 3, max: 2000 } // Length -- cgit v1.2.3