diff options
author | Brian Cameron <Brian.Cameron@oracle.com> | 2010-09-15 14:58:57 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2010-09-15 14:58:57 -0400 |
commit | 7ba85e239ad007e5f972053b43803ec8522965c9 (patch) | |
tree | b364702c38b59eef388a567a62fd9860e486b5d9 /gui | |
parent | d8a75a806215cf95832de70da7fdb9c7592d697f (diff) | |
download | gdm-7ba85e239ad007e5f972053b43803ec8522965c9.tar.gz |
Fix crash when face browser disabled
If you enter a username and an invalid password, then the dialog resets
without an entry field and just a "Login" button. So you can't enter
the username. If you click on the "Login" button then it crashes.
This is because of missing code to initiate authentication.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/simple-greeter/gdm-greeter-login-window.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c index 96e6fcee..cd9a162d 100644 --- a/gui/simple-greeter/gdm-greeter-login-window.c +++ b/gui/simple-greeter/gdm-greeter-login-window.c @@ -668,6 +668,11 @@ reset_dialog (GdmGreeterLoginWindow *login_window, /* If we don't have a user list jump straight to authenticate */ g_debug ("GdmGreeterLoginWindow: jumping straight to authenticate"); switch_mode (login_window, MODE_AUTHENTICATION); + + g_debug ("Starting PAM conversation since no local users"); + g_signal_emit (G_OBJECT (login_window), signals[USER_SELECTED], + 0, GDM_USER_CHOOSER_USER_OTHER); + g_signal_emit (login_window, signals[BEGIN_VERIFICATION], 0); } else { switch_mode (login_window, dialog_mode); } |