user-accounts: allow password changing if old password is empty

https://bugzilla.gnome.org/show_bug.cgi?id=733619
This commit is contained in:
Ondrej Holy 2014-07-26 19:09:46 +02:00
parent f904756f74
commit 0aff10e509

View file

@ -369,7 +369,7 @@ old_password_entry_timeout (UmPasswordDialog *um)
update_sensitivity (um);
text = gtk_entry_get_text (GTK_ENTRY (um->old_password_entry));
if (strlen (text) > 0 && !um->old_password_ok) {
if (!um->old_password_ok) {
passwd_authenticate (um->passwd_handler, text, (PasswdCallback)auth_cb, um);
}