summaryrefslogtreecommitdiff
path: root/daemon/gdm-session-direct.c
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2009-05-07 16:34:57 -0400
committerRay Strode <rstrode@redhat.com>2009-05-07 16:34:57 -0400
commit43b1084d52892fffea7f2e6cd3731ad2a46b52bd (patch)
treeb4089eb62a8751c348f590b0a5ae6bccdb66bd23 /daemon/gdm-session-direct.c
parent90e3f1ff8db67da21df90dd0c2dcefc7f0edcc55 (diff)
downloadgdm-43b1084d52892fffea7f2e6cd3731ad2a46b52bd.tar.gz
Set is_authenticated to TRUE when authenticated
Before the flag was never getting set causing btmp records to get written when the session and slave are killed around the same time (by switching runlevels)
Diffstat (limited to 'daemon/gdm-session-direct.c')
-rw-r--r--daemon/gdm-session-direct.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/daemon/gdm-session-direct.c b/daemon/gdm-session-direct.c
index 34a126f5..7259bf6a 100644
--- a/daemon/gdm-session-direct.c
+++ b/daemon/gdm-session-direct.c
@@ -334,6 +334,7 @@ gdm_session_direct_handle_authenticated (GdmSessionDirect *session,
dbus_connection_send (connection, reply, NULL);
dbus_message_unref (reply);
+ session->priv->is_authenticated = TRUE;
_gdm_session_authenticated (GDM_SESSION (session));
return DBUS_HANDLER_RESULT_HANDLED;
@@ -361,6 +362,7 @@ gdm_session_direct_handle_authentication_failed (GdmSessionDirect *session,
g_debug ("GdmSessionDirect: Emitting 'authentication-failed' signal");
+ session->priv->is_authenticated = FALSE;
_gdm_session_authentication_failed (GDM_SESSION (session), NULL);
return DBUS_HANDLER_RESULT_HANDLED;