MagicLinkUserNameComponent: fix validator property name for "username"
This commit is contained in:
parent
cecf28502e
commit
c08d03c8fb
@ -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');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user