From a9935738595c7fcbf78696a67d9e31b45830297f Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 30 Jun 2013 22:38:05 +0200 Subject: Initial commit --- static/js/login.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 static/js/login.js (limited to 'static/js/login.js') diff --git a/static/js/login.js b/static/js/login.js new file mode 100644 index 0000000..bbd2a19 --- /dev/null +++ b/static/js/login.js @@ -0,0 +1,12 @@ +function login () +{ + navigator.id.get(function(assertion) { + if (assertion) { + var assertion_field = + document.getElementById("assertion-field"); + assertion_field.value = assertion; + var login_form = document.getElementById("login-form"); + login_form.submit(); + } + }); +} -- cgit v1.2.3-54-g00ecf