summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorrobert.ancell@gmail.com <>2010-06-14 15:28:51 +1000
committerrobert.ancell@gmail.com <>2010-06-14 15:28:51 +1000
commit73fbc894f05a6c3c0985a86e07e9429eb339e94c (patch)
tree98069be3927d8859e4c41233cbd9256fff8a929e /themes
parentc5ad4c286f7c95b079837fdd6760b6e433d930aa (diff)
downloadlightdm-73fbc894f05a6c3c0985a86e07e9429eb339e94c.tar.gz
Handle failed authentication in WebKit theme
Diffstat (limited to 'themes')
-rw-r--r--themes/webkit/index.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/themes/webkit/index.html b/themes/webkit/index.html
index 1146a6ad..87f95f07 100644
--- a/themes/webkit/index.html
+++ b/themes/webkit/index.html
@@ -48,7 +48,20 @@ function show_message(text)
function authentication_complete()
{
if (lightdm.is_authenticated)
+ {
lightdm.close();
+ return;
+ }
+
+ user_table = document.getElementById('user_table');
+ for (i in user_table.rows)
+ {
+ row = user_table.rows[i];
+ if (row.style != null) // FIXME: Don't know why there are rows with styles
+ row.style.opacity = 1;
+ }
+ table = document.getElementById('password_table');
+ table.style.visibility = "hidden";
}
function start_authentication(username)