@@ -83,7 +83,9 @@ Item {
83 wrapMode: Text.Wrap
83 wrapMode: Text.Wrap
85 if (matching !== undefined) {
85 if (matching !== undefined) {
86+ if (password.length < 8)
87+ return i18n.tr("Password too short");
86− if (matching)
88+ else if (matching)
87 return i18n.tr("Passwords match");
89 return i18n.tr("Passwords match");
88 else if (!matching)
90 else if (!matching)
89 return i18n.tr("Passwords do not match");
91 return i18n.tr("Passwords do not match");