1
0
Fork 0

Prevent compat issue with old username

We were accepting more characters, so don't break DB for these users
This commit is contained in:
Chocobozzz 2022-09-08 10:45:05 +02:00
parent 37a04703a4
commit 6c4d6ec831
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -50,7 +50,6 @@ import {
isUserP2PEnabledValid, isUserP2PEnabledValid,
isUserPasswordValid, isUserPasswordValid,
isUserRoleValid, isUserRoleValid,
isUserUsernameValid,
isUserVideoLanguages, isUserVideoLanguages,
isUserVideoQuotaDailyValid, isUserVideoQuotaDailyValid,
isUserVideoQuotaValid, isUserVideoQuotaValid,
@ -260,7 +259,6 @@ export class UserModel extends Model<Partial<AttributesOnly<UserModel>>> {
password: string password: string
@AllowNull(false) @AllowNull(false)
@Is('UserUsername', value => throwIfNotValid(value, isUserUsernameValid, 'user name'))
@Column @Column
username: string username: string