[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH rhel6-branch] Use the same error message in text mode and GUI (#625809)



It is a weak password message.
---
 textw/userauth_text.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/textw/userauth_text.py b/textw/userauth_text.py
index 8798348..ab7abd0 100644
--- a/textw/userauth_text.py
+++ b/textw/userauth_text.py
@@ -81,10 +81,10 @@ class RootPasswordWindow:
                 except ValueError, e:
                     msg = gettext.ldgettext("cracklib", e)
                     ret = anaconda.intf.messageWindow(_("Weak Password"),
-                             _("You have provided a weak password: %s\n\n"
-                               "Would you like to continue with this password?"
-                               % (msg, )),
-                             type = "yesno", default="no")
+                              _("You have provided a weak password: %s") % msg,
+                              type="custom", custom_icon="error",
+                              default=0,
+                              custom_buttons=[_("Cancel"), _("_Use Anyway")])
                     if ret == 1:
                         break
                 else:
-- 
1.7.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]