]> rtime.felk.cvut.cz Git - sojka/lightdm.git/commitdiff
Tidy up authentication example
authorunknown <robert.ancell@gmail.com>
Sun, 27 Jun 2010 09:46:40 +0000 (19:46 +1000)
committerunknown <robert.ancell@gmail.com>
Sun, 27 Jun 2010 09:46:40 +0000 (19:46 +1000)
doc/tmpl/greeter.sgml

index fc732d623ab475fa189e2dd9e5700d696fe6dc6d..59fb85da0183ed8f5c53eb3713cb1f23d8bd9433 100644 (file)
@@ -30,7 +30,7 @@ Once connected, start an authentication conversation like this:
 static void show_prompt_cb (LdmGreeter *greeter, const char *text)
 {
     // Show the user the message and prompt for some response
-    gchar *secret = ask_user_question (text);
+    gchar *secret = prompt_user (text);
 
     // Give the result to the user
     ldm_greeter_provide_secret (greeter, secret);
@@ -44,6 +44,7 @@ static void authentication_complete_cb (LdmGreeter *greeter)
     }
     else {
         // Display a warning and reset the greeter
+        reset_login_screen ();
     }
 }