Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions data/lightdm-gtk-greeter.conf
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
# hide-user-image = false|true ("false" by default)
# round-user-image = false|true ("true" by default)
# highlight-logged-user = false|true ("true" by default)
# pam-autologin = false|true ("false" by default) Whether the currently selected user should be logged in automatically, once a PAM auth succeeds.
#
# Panel:
# panel-position = top|bottom ("top" by default)
Expand Down
1 change: 1 addition & 0 deletions src/greeterconfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#define CONFIG_KEY_DEFAULT_USER_IMAGE "default-user-image"
#define CONFIG_KEY_ROUND_USER_IMAGE "round-user-image"
#define CONFIG_KEY_HIGHLIGHT_LOGGED_USER "highlight-logged-user"
#define CONFIG_KEY_PAM_AUTOLOGIN "pam-autologin"
#define CONFIG_KEY_KEYBOARD "keyboard"
#define CONFIG_KEY_KEYBOARD_LAYOUTS "keyboard-layouts"
#define CONFIG_KEY_READER "reader"
Expand Down
14 changes: 9 additions & 5 deletions src/lightdm-gtk-greeter.c
Original file line number Diff line number Diff line change
Expand Up @@ -2622,12 +2622,16 @@ authentication_complete_cb (LightDMGreeter *ldm)

if (lightdm_greeter_get_is_authenticated (ldm))
{
if (prompted)
if (config_get_bool (NULL, CONFIG_KEY_PAM_AUTOLOGIN, FALSE)) {
start_session ();
else
{
gtk_widget_hide (GTK_WIDGET (password_entry));
gtk_widget_grab_focus (GTK_WIDGET (user_combo));
} else {
if (prompted)
start_session ();
else
{
gtk_widget_hide (GTK_WIDGET (password_entry));
gtk_widget_grab_focus (GTK_WIDGET (user_combo));
}
}
}
else
Expand Down