diff options
| author | Alexander Pyhalov <[email protected]> | 2018-11-08 15:49:33 +0300 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-04-08 16:20:06 -0400 |
| commit | 0f0f519772e674b47bbe6f6c25d3269b426a4a97 (patch) | |
| tree | a50800c467a4eba14d8588e26afbad21c6b62ff3 | |
| parent | 47d60e9dcf10efc9b7d0bc1dcfe816d719081a2c (diff) | |
| download | mate-control-center-master.tar.bz2 mate-control-center-master.tar.xz | |
| -rw-r--r-- | capplets/about-me/mate-about-me-password.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/capplets/about-me/mate-about-me-password.c b/capplets/about-me/mate-about-me-password.c index 36b8ac6f..bf7785a8 100644 --- a/capplets/about-me/mate-about-me-password.c +++ b/capplets/about-me/mate-about-me-password.c @@ -649,6 +649,11 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi "match", "1 numeric or special", "failure", + "must contain", + "must differ", + "are not allowed", + "repeating characters", + "history", "rotated", "error", "BAD PASSWORD", @@ -676,12 +681,16 @@ io_watch_stdout (GIOChannel *source, GIOCondition condition, PasswordDialog *pdi g_strrstr (str->str, "longer") != NULL) { msg = g_strdup (_("The password is too short.")); } else if (g_strrstr (str->str, "palindrome") != NULL || + g_strrstr (str->str, "must contain") != NULL || + g_strrstr (str->str, "are not allowed") != NULL || + g_strrstr (str->str, "repeating characters") != NULL || g_strrstr (str->str, "simpl") != NULL || 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, "must differ") != NULL || g_strrstr (str->str, "wrapped") != NULL) { msg = g_strdup (_("The old and new passwords are too similar.")); } else if (g_strrstr (str->str, "1 numeric or special") != NULL) { @@ -689,7 +698,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) { + } else if (g_strrstr (str->str, "recent") != NULL || + g_strrstr (str->str, "history") != NULL) { msg = g_strdup (_("The new password has already been used recently.")); } else if (g_strrstr (str->str, "failure") != NULL) { /* Authentication failure */ |
