[gnome-control-center] user-accounts: Enable checking for seqences in password



commit 596908c5d382d0fe1c6b1aee8349ed22aafa18c3
Author: Ondrej Holy <oholy redhat com>
Date:   Tue Jun 18 15:16:51 2013 +0200

    user-accounts: Enable checking for seqences in password
    
    Bump libpwquality version to 1.2.2.
    
    ttps://bugzilla.gnome.org/show_bug.cgi?id=702474

 configure.ac                    |    2 +-
 panels/user-accounts/pw-utils.c |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index e233bad..3bd6d31 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,7 +102,7 @@ GOA_REQUIRED_VERSION=3.9.1
 ACCOUNTSSERVICE_REQUIRED_VERSION=0.6.30
 COLORD_REQUIRED_VERSION=0.1.34
 COLORD_GTK_REQUIRED_VERSION=0.1.24
-PWQAULITY_REQUIRED_VERSION=1.2.0
+PWQAULITY_REQUIRED_VERSION=1.2.2
 
 COMMON_MODULES="gtk+-3.0 >= $GTK_REQUIRED_VERSION
  glib-2.0 >= $GLIB_REQUIRED_VERSION
diff --git a/panels/user-accounts/pw-utils.c b/panels/user-accounts/pw-utils.c
index 0424902..88e0be1 100644
--- a/panels/user-accounts/pw-utils.c
+++ b/panels/user-accounts/pw-utils.c
@@ -36,6 +36,7 @@ get_pwq (void)
         if (settings == NULL) {
                 gchar *err = NULL;
                 settings = pwquality_default_settings ();
+                pwquality_set_int_value (settings, PWQ_SETTING_MAX_SEQUENCE, 4);
                 if (pwquality_read_config (settings, NULL, (gpointer)&err) < 0) {
                         g_error ("failed to read pwquality configuration: %s\n", err);
                 }


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