user-accounts: Set the password mode to regular immediately

https://bugzilla.gnome.org/show_bug.cgi?id=701701
This commit is contained in:
Jean-Benoit MARTIN 2013-06-06 13:21:59 +02:00 committed by Ondrej Holy
parent c7b02d716a
commit 27371a542a

View file

@ -192,6 +192,7 @@ 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;