diff --git a/src/components/index/CreateModal.vue b/src/components/index/CreateModal.vue index 475c288..5eb2445 100644 --- a/src/components/index/CreateModal.vue +++ b/src/components/index/CreateModal.vue @@ -137,7 +137,10 @@ export default { }, validations() { return { - password: validation.password, + password: [ + validation.passwordRequired, + validation.passwordLength, + ], confirmPhrase: [ validation.required, matchConfirmPhrase diff --git a/src/components/index/RestoreModal.vue b/src/components/index/RestoreModal.vue index 18d8ad4..1e1af3d 100644 --- a/src/components/index/RestoreModal.vue +++ b/src/components/index/RestoreModal.vue @@ -104,7 +104,10 @@ export default { validation.required, helpers.withMessage('Invalid private key.', v => privateKeyRegexp.test(v)) ], - password: validation.password, + password: [ + validation.passwordRequired, + validation.passwordLength, + ], repeatPassword: [ helpers.withMessage('Passwords do not match.', sameAs(this.password)) ] diff --git a/src/components/index/UnlockModal.vue b/src/components/index/UnlockModal.vue index 9ba900f..37dc744 100644 --- a/src/components/index/UnlockModal.vue +++ b/src/components/index/UnlockModal.vue @@ -11,7 +11,7 @@ {{ address }} -