[gnome-control-center] [about-me] Don't hang when new and old password are too similar



commit 538670298ef3302cc40347c92f91ef23b996ab0e
Author: Milan Bouchet-Valat <nalimilan club fr>
Date:   Sat May 22 12:10:05 2010 +0200

    [about-me] Don't hang when new and old password are too similar
    
    If new password is really close to the old one, 'passwd' says: "Bad: new password must be different than the old one". Handle this case too, instead of hanging.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=619354

 capplets/about-me/gnome-about-me-password.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/capplets/about-me/gnome-about-me-password.c b/capplets/about-me/gnome-about-me-password.c
index 344152a..a93a540 100644
--- a/capplets/about-me/gnome-about-me-password.c
+++ b/capplets/about-me/gnome-about-me-password.c
@@ -506,6 +506,7 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi
 							  "dictionary",
 							  "simple",
 							  "similar",
+							  "different",
 							  "case",
 							  "wrapped",
 							  "recovered",
@@ -541,6 +542,7 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi
 						   g_strrstr (str->str, "dictionary") != NULL) {
 						msg = g_strdup (_("The password is too simple."));
 					} else if (g_strrstr (str->str, "similar") != NULL ||
+					           g_strrstr (str->str, "different") != NULL ||
 					           g_strrstr (str->str, "case") != NULL ||
 						   g_strrstr (str->str, "wrapped") != NULL) {
 						msg = g_strdup (_("The old and new passwords are too similar."));



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