Commit 392043ba authored by Mohammed Sadiq's avatar Mohammed Sadiq
Browse files

password: Allow 6+ digit passwords

Fixes Librem5/gnome-initial-setup#18
parent 10e0c5f4
Pipeline #51430 canceled with stage
in 0 seconds
......@@ -136,7 +136,7 @@ validate (GisPasswordPage *page)
gtk_label_set_label (GTK_LABEL (priv->confirm_explanation), "");
priv->valid_confirm = FALSE;
priv->valid_password = (strlen (password) == 6);
priv->valid_password = (strlen (password) >= 6);
if (priv->valid_password) {
set_entry_validation_checkmark (GTK_ENTRY (priv->password_entry));
clear_entry_validation_error (GTK_ENTRY (priv->password_entry));
......
......@@ -69,7 +69,7 @@
<property name="can_focus">False</property>
<property name="xalign">0</property>
<property name="yalign">0</property>
<property name="label" translatable="yes">Only 6 digit numbers are allowed</property>
<property name="label" translatable="yes">Password should be at least 6 digits</property>
<property name="height-request">50</property>
<property name="wrap">True</property>
<property name="hexpand">True</property>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment