user-accounts: Enable checking for seqences in password
Bump libpwquality version to 1.2.2. ttps://bugzilla.gnome.org/show_bug.cgi?id=702474
This commit is contained in:
parent
7e62ec47ce
commit
596908c5d3
2 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue