From 6c4d6ec83102c489b28a0018e73df8e0e576997d Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 8 Sep 2022 10:45:05 +0200 Subject: Prevent compat issue with old username We were accepting more characters, so don't break DB for these users --- server/models/user/user.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/server/models/user/user.ts b/server/models/user/user.ts index a2c2497fd..1a7c84390 100644 --- a/server/models/user/user.ts +++ b/server/models/user/user.ts @@ -50,7 +50,6 @@ import { isUserP2PEnabledValid, isUserPasswordValid, isUserRoleValid, - isUserUsernameValid, isUserVideoLanguages, isUserVideoQuotaDailyValid, isUserVideoQuotaValid, @@ -260,7 +259,6 @@ export class UserModel extends Model>> { password: string @AllowNull(false) - @Is('UserUsername', value => throwIfNotValid(value, isUserUsernameValid, 'user name')) @Column username: string -- cgit v1.2.3