[gnome-control-center] user-accounts: fix password changing
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: fix password changing
- Date: Thu, 27 Mar 2014 12:49:36 +0000 (UTC)
commit 5c7c83921a7ec3bb50dd0c061dfc52cea25f9218
Author: Ondrej Holy <oholy redhat com>
Date: Thu Mar 20 18:27:20 2014 +0100
user-accounts: fix password changing
https://bugzilla.gnome.org/show_bug.cgi?id=701701
panels/user-accounts/um-password-dialog.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/user-accounts/um-password-dialog.c b/panels/user-accounts/um-password-dialog.c
index a3fcd1e..b56dde2 100644
--- a/panels/user-accounts/um-password-dialog.c
+++ b/panels/user-accounts/um-password-dialog.c
@@ -183,7 +183,6 @@ accept_password_dialog (GtkButton *button,
password = gtk_entry_get_text (GTK_ENTRY (um->password_entry));
switch (um->password_mode) {
- act_user_set_password_mode (um->user, ACT_USER_PASSWORD_MODE_REGULAR);
case ACT_USER_PASSWORD_MODE_REGULAR:
if (act_user_get_uid (um->user) == getuid ()) {
GdkDisplay *display;
@@ -204,6 +203,7 @@ accept_password_dialog (GtkButton *button,
return;
}
+ act_user_set_password_mode (um->user, ACT_USER_PASSWORD_MODE_REGULAR);
act_user_set_password (um->user, password, "");
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]