aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/user
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-08 10:45:05 +0200
committerChocobozzz <me@florianbigard.com>2022-09-08 10:45:05 +0200
commit6c4d6ec83102c489b28a0018e73df8e0e576997d (patch)
tree44f269f364eaa77ff5a11a1430c065d65a979b28 /server/models/user
parent37a04703a4b9829cb9aef6c5bb8835d2fa2f2fbc (diff)
downloadPeerTube-6c4d6ec83102c489b28a0018e73df8e0e576997d.tar.gz
PeerTube-6c4d6ec83102c489b28a0018e73df8e0e576997d.tar.zst
PeerTube-6c4d6ec83102c489b28a0018e73df8e0e576997d.zip
Prevent compat issue with old username
We were accepting more characters, so don't break DB for these users
Diffstat (limited to 'server/models/user')
-rw-r--r--server/models/user/user.ts2
1 files changed, 0 insertions, 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 {
50 isUserP2PEnabledValid, 50 isUserP2PEnabledValid,
51 isUserPasswordValid, 51 isUserPasswordValid,
52 isUserRoleValid, 52 isUserRoleValid,
53 isUserUsernameValid,
54 isUserVideoLanguages, 53 isUserVideoLanguages,
55 isUserVideoQuotaDailyValid, 54 isUserVideoQuotaDailyValid,
56 isUserVideoQuotaValid, 55 isUserVideoQuotaValid,
@@ -260,7 +259,6 @@ export class UserModel extends Model<Partial<AttributesOnly<UserModel>>> {
260 password: string 259 password: string
261 260
262 @AllowNull(false) 261 @AllowNull(false)
263 @Is('UserUsername', value => throwIfNotValid(value, isUserUsernameValid, 'user name'))
264 @Column 262 @Column
265 username: string 263 username: string
266 264