mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
Allow empty passwords in GtkMountOperation
Allow empty passwords, since there are situations where the backend doesn't need the password. (#578365)
This commit is contained in:
parent
a15b14032e
commit
84a9e65ca3
@ -316,9 +316,14 @@ pw_dialog_input_is_valid (GtkMountOperation *operation)
|
||||
GtkMountOperationPrivate *priv = operation->priv;
|
||||
gboolean is_valid = TRUE;
|
||||
|
||||
/* We don't require password to be non-empty here
|
||||
* since there are situations where it is not needed,
|
||||
* see bug 578365.
|
||||
* We may add a way for the backend to specify that it
|
||||
* definitively needs a password.
|
||||
*/
|
||||
is_valid = entry_has_input (priv->username_entry) &&
|
||||
entry_has_input (priv->domain_entry) &&
|
||||
entry_has_input (priv->password_entry);
|
||||
entry_has_input (priv->domain_entry);
|
||||
|
||||
return is_valid;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user