[gnome-control-center/gnome-3-10] user-accounts: fix password changing



commit d2074fad73b6574c0f7ca0e4ca4a2c58819c548c
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 a6d1ac3..d87d76c 100644
--- a/panels/user-accounts/um-password-dialog.c
+++ b/panels/user-accounts/um-password-dialog.c
@@ -184,7 +184,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;
@@ -205,6 +204,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]