Prevent compat issue with old username
We were accepting more characters, so don't break DB for these users
This commit is contained in:
parent
37a04703a4
commit
6c4d6ec831
1 changed files with 0 additions and 2 deletions
|
@ -50,7 +50,6 @@ import {
|
|||
isUserP2PEnabledValid,
|
||||
isUserPasswordValid,
|
||||
isUserRoleValid,
|
||||
isUserUsernameValid,
|
||||
isUserVideoLanguages,
|
||||
isUserVideoQuotaDailyValid,
|
||||
isUserVideoQuotaValid,
|
||||
|
@ -260,7 +259,6 @@ export class UserModel extends Model<Partial<AttributesOnly<UserModel>>> {
|
|||
password: string
|
||||
|
||||
@AllowNull(false)
|
||||
@Is('UserUsername', value => throwIfNotValid(value, isUserUsernameValid, 'user name'))
|
||||
@Column
|
||||
username: string
|
||||
|
||||
|
|
Loading…
Reference in a new issue