Fix account names validation
authorChocobozzz <me@florianbigard.com>
Fri, 5 Jan 2018 14:51:01 +0000 (15:51 +0100)
committerChocobozzz <me@florianbigard.com>
Fri, 5 Jan 2018 14:51:01 +0000 (15:51 +0100)
server/models/account/account.ts

index 4930681279e1424066c8910b7ac64fd5052b11fb..c85d12824d5394ee04fb4d135d01201ccd095f4e 100644 (file)
@@ -48,7 +48,6 @@ import { UserModel } from './user'
 export class AccountModel extends Model<AccountModel> {
 
   @AllowNull(false)
-  @Is('AccountName', value => throwIfNotValid(value, isUserUsernameValid, 'account name'))
   @Column
   name: string