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
1 changed files with 1 additions and 1 deletions

View File

@ -7,6 +7,6 @@ export default class MagicLinkUserNameComponent extends ModelComponent<MagicLink
public readonly username?: string = undefined;
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');
}
}