MagicLinkUserNameComponent: fix validator property name for "username"

This commit is contained in:
Alice Gaudon 2020-11-15 14:13:57 +01:00
parent cecf28502e
commit c08d03c8fb

View File

@ -7,6 +7,6 @@ export default class MagicLinkUserNameComponent extends ModelComponent<MagicLink
public readonly username?: string = undefined; public readonly username?: string = undefined;
protected init(): void { protected init(): void {
this.setValidation('name').defined().between(3, 64).regexp(USERNAME_REGEXP).unique(User, 'name'); this.setValidation('username').defined().between(3, 64).regexp(USERNAME_REGEXP).unique(User, 'name');
} }
} }