@@ -357,6 +344,13 @@ class UserSpoke(FirstbootSpokeMixIn,
NormalSpoke):
text = _("Strong")
self._error = False
+ if not self.pw.get_text():
+ val = 0
+ text = _("Empty!")
+ self._error = _("The password is empty!")
+ elif self.confirm.get_text() and self.pw.get_text() != self.confirm.get_text():
+ self._error = _("The passwords do not match!")
+
self.pw_bar.set_value(val)
self.pw_label.set_text(text)
I realize you're just moving the strings around. But, do they really
deserve exclamation points?
- Chris