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:
Matthias Clasen 2009-04-08 10:02:52 -04:00
parent a15b14032e
commit 84a9e65ca3

View File

@ -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;
}