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,
|
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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue