diff options
author | Tom Willemse | 2013-06-30 22:38:05 +0200 |
---|---|---|
committer | Tom Willemse | 2013-07-01 00:01:48 +0200 |
commit | a9935738595c7fcbf78696a67d9e31b45830297f (patch) | |
tree | b8c1a46d3ee8280af3dc46129975dcff8c628a5e /static/js/login.js | |
download | scrumli-a9935738595c7fcbf78696a67d9e31b45830297f.tar.gz scrumli-a9935738595c7fcbf78696a67d9e31b45830297f.zip |
Initial commit
Diffstat (limited to 'static/js/login.js')
-rw-r--r-- | static/js/login.js | 12 |
1 files changed, 12 insertions, 0 deletions
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(); + } + }); +} |