mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
Added validation for username length and password length in sign up form
This commit is contained in:
parent
f8581be695
commit
b602b5e6bd
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ AccountsTemplates.addField({
|
||||||
type: "text",
|
type: "text",
|
||||||
displayName: "username",
|
displayName: "username",
|
||||||
required: true,
|
required: true,
|
||||||
minLength: 5,
|
minLength: 3,
|
||||||
errStr: 'error.minChar'
|
errStr: 'error.minChar'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ AccountsTemplates.addField({
|
||||||
_id: 'password',
|
_id: 'password',
|
||||||
type: 'password',
|
type: 'password',
|
||||||
required: true,
|
required: true,
|
||||||
minLength: 7,
|
minLength: 8,
|
||||||
errStr: 'error.minChar'
|
errStr: 'error.minChar'
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue