aboutsummaryrefslogtreecommitdiffstats
path: root/js/login.js
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-06-23 21:13:36 +0200
committerGravatar Tom Willemse2013-06-23 21:13:36 +0200
commit5deba1e60defc6ea2cd6bc0bb7e86f0cb70ed516 (patch)
tree315f50f42535d993e1cbb6e18d4fa8723544dee9 /js/login.js
parent8aa9bcb7d5fd80592868a6eebedc40bb0c775ef7 (diff)
downloadscrumelo-5deba1e60defc6ea2cd6bc0bb7e86f0cb70ed516.tar.gz
scrumelo-5deba1e60defc6ea2cd6bc0bb7e86f0cb70ed516.zip
Add login page
Nothing is yet done with the information, but it should soon.
Diffstat (limited to 'js/login.js')
-rw-r--r--js/login.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/js/login.js b/js/login.js
new file mode 100644
index 0000000..bbd2a19
--- /dev/null
+++ b/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();
+ }
+ });
+}