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,
|
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 New Issue
Block a user