[gdm/multi-stack: 24/46] reset all conversations if password conversation fails
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm/multi-stack: 24/46] reset all conversations if password conversation fails
- Date: Fri, 26 Mar 2010 13:35:37 +0000 (UTC)
commit f2825928f11b68497ad27f5dfe0ffac63bc06498
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 b2af64e..6ce65a0 100644
--- a/gui/simple-greeter/gdm-greeter-login-window.c
+++ b/gui/simple-greeter/gdm-greeter-login-window.c
@@ -758,6 +758,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]