Fixed issue with empty password registration #61.

This commit is contained in:
Tim Brandin 2016-12-18 14:25:09 +01:00
parent e661af6b08
commit 5fb23ded81
2 changed files with 2 additions and 4 deletions

View file

@ -54,7 +54,7 @@ export function passwordSignupFields() {
return Accounts.ui._options.passwordSignupFields || "EMAIL_ONLY_NO_PASSWORD";
};
export function validatePassword(password){
export function validatePassword(password = ''){
if (password.length >= Accounts.ui._options.minimumPasswordLength) {
return true;
} else {

View file

@ -16,9 +16,7 @@
"url": "https://github.com/studiointeract/accounts-ui/issues"
},
"homepage": "https://github.com/studiointeract/accounts-ui",
"dependencies": {
},
"dependencies": {},
"peerDependencies": {
"react": ">=0.14.7 || ^15.0.0",
"react-dom": ">=0.14.7 || ^15.0.0",