[gdm/multi-stack: 27/34] reset all conversations if password conversation fails
- From: Ray Strode <halfline src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gdm/multi-stack: 27/34] reset all conversations if password conversation fails
- Date: Wed, 28 Oct 2009 18:03:08 +0000 (UTC)
commit 688dfeac7eebe5344cf71285c4d0e7230bebf60c
Author: Ray Strode <rstrode redhat com>
Date: Mon Apr 13 14:19:50 2009 -0400
reset all conversations if password conversation fails
This is a temporary hack until we store plugin policy in
gconf.
gui/simple-greeter/gdm-greeter-login-window.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-greeter-login-window.c b/gui/simple-greeter/gdm-greeter-login-window.c
index 38ec8d0..8a72e9d 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -760,6 +760,16 @@ gdm_greeter_login_window_conversation_stopped (GdmGreeterLoginWindow *login_wind
g_debug ("GdmGreeterLoginWindow: conversation '%s' has stopped", service_name);
+ /* If the password conversation failed, then start over
+ *
+ * FIXME: we need to get this policy out of the source code
+ */
+ if (strcmp (service_name, "gdm-password") == 0) {
+ g_debug ("GdmGreeterLoginWindow: main conversation failed, starting over");
+ restart_conversations (login_window);
+ return TRUE;
+ }
+
task = find_task_with_service_name (login_window, service_name);
if (task != NULL) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]