mirror of
https://github.com/vale981/accounts-ui
synced 2025-03-05 18:01:39 -05:00
Fixed issue with empty password registration #61.
This commit is contained in:
parent
e661af6b08
commit
5fb23ded81
2 changed files with 2 additions and 4 deletions
|
@ -54,7 +54,7 @@ export function passwordSignupFields() {
|
||||||
return Accounts.ui._options.passwordSignupFields || "EMAIL_ONLY_NO_PASSWORD";
|
return Accounts.ui._options.passwordSignupFields || "EMAIL_ONLY_NO_PASSWORD";
|
||||||
};
|
};
|
||||||
|
|
||||||
export function validatePassword(password){
|
export function validatePassword(password = ''){
|
||||||
if (password.length >= Accounts.ui._options.minimumPasswordLength) {
|
if (password.length >= Accounts.ui._options.minimumPasswordLength) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -16,9 +16,7 @@
|
||||||
"url": "https://github.com/studiointeract/accounts-ui/issues"
|
"url": "https://github.com/studiointeract/accounts-ui/issues"
|
||||||
},
|
},
|
||||||
"homepage": "https://github.com/studiointeract/accounts-ui",
|
"homepage": "https://github.com/studiointeract/accounts-ui",
|
||||||
"dependencies": {
|
"dependencies": {},
|
||||||
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": ">=0.14.7 || ^15.0.0",
|
"react": ">=0.14.7 || ^15.0.0",
|
||||||
"react-dom": ">=0.14.7 || ^15.0.0",
|
"react-dom": ">=0.14.7 || ^15.0.0",
|
||||||
|
|
Loading…
Add table
Reference in a new issue