Added validation for username length and password length in sign up form

This commit is contained in:
Steffen Strätz 2014-09-26 17:21:16 +02:00
parent f8581be695
commit b602b5e6bd

View file

@ -9,7 +9,7 @@ AccountsTemplates.addField({
type: "text",
displayName: "username",
required: true,
minLength: 5,
minLength: 3,
errStr: 'error.minChar'
});
@ -29,7 +29,7 @@ AccountsTemplates.addField({
_id: 'password',
type: 'password',
required: true,
minLength: 7,
minLength: 8,
errStr: 'error.minChar'
});