[gnome-control-center] Catch "password too recent" error message



commit 0c30e688372a2d4245e9a069c7dcac5c423d95e2
Author: Bin Li <libin charles gmail com>
Date:   Mon May 31 21:25:56 2010 +0200

    Catch "password too recent" error message
    
    Closes bug #620135.

 capplets/about-me/gnome-about-me-password.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/capplets/about-me/gnome-about-me-password.c b/capplets/about-me/gnome-about-me-password.c
index a93a540..e951b12 100644
--- a/capplets/about-me/gnome-about-me-password.c
+++ b/capplets/about-me/gnome-about-me-password.c
@@ -510,6 +510,7 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi
 							  "case",
 							  "wrapped",
 							  "recovered",
+							  "recent"
 							  "unchanged",
 							  "match",
 							  "1 numeric or special",
@@ -551,6 +552,8 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi
 					} else if (g_strrstr (str->str, "unchanged") != NULL ||
 						   g_strrstr (str->str, "match") != NULL) {
 						msg = g_strdup (_("The old and new passwords are the same."));
+					} else if (g_strrstr (str->str, "recent") != NULL) {
+						msg = g_strdup (_("The new password has already been used recently."));
 					} else if (g_strrstr (str->str, "failure") != NULL) {
 						/* Authentication failure */
 						msg = g_strdup (_("Your password has been changed since you initially authenticated! Please re-authenticate."));



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