on xenial help sign in
display a "password too short" notice as well
commit4de3c5a66f4506abb3b27fff2a50477e0453e05f authorLukáš Tinkl <lukas.tinkl@canonical.com> dateThu 9 Jun 2016, 10:01 (10 years ago) parent8beb548
1 file changed+3−1
qml/Wizard/PasswordMeter.qml+3−1
qml/Wizard/PasswordMeter.qml+3−1
@@ -83,7 +83,9 @@ Item {
8383 wrapMode: Text.Wrap
8484 text: {
8585 if (matching !== undefined) {
86− if (matching)
86+ if (password.length < 8)
87+ return i18n.tr("Password too short");
88+ else if (matching)
8789 return i18n.tr("Passwords match");
8890 else if (!matching)
8991 return i18n.tr("Passwords do not match");