@@ -50,7 +50,7 @@ export default {
}
const validatePassword = (rule, value, callback) => {
- if (value.length < 6) {
+ if (!value || value.length < 6) {
callback(new Error('The password can not be less than 6 digits'))
} else {
callback()