mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
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
@ -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 New Issue
Block a user