From: Chocobozzz Date: Fri, 3 Apr 2020 12:08:27 +0000 (+0200) Subject: Fix typo in db field check X-Git-Tag: v2.2.0-rc.1~280 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=51892fe0429e237bff956143630b295aa358f811;p=oweals%2Fpeertube.git Fix typo in db field check --- diff --git a/server/models/account/user.ts b/server/models/account/user.ts index 026bf1318..dec99d90a 100644 --- a/server/models/account/user.ts +++ b/server/models/account/user.ts @@ -233,7 +233,7 @@ export class UserModel extends Model { password: string @AllowNull(false) - @Is('UserPassword', value => throwIfNotValid(value, isUserUsernameValid, 'user name')) + @Is('UserUsername', value => throwIfNotValid(value, isUserUsernameValid, 'user name')) @Column username: string