KaiRo bug 392 - Create an interstitial page to confirm the user to log in
[authserver.git] / authsystem.js
index faaf975c36c48f34adcc97495bdd3f535f20bdc8..dee8142337666c5fe1c4b3073a50da4b1a40f019 100644 (file)
@@ -23,4 +23,23 @@ window.onload = function() {
       loginForm.setAttribute("class", "loginarea");
     }
   }
+  var cancelAuth = document.getElementById("cancelauth");
+  if (cancelAuth) {
+    cancelAuth.onclick = function() {
+      document.getElementById("isauthorized").value = "no";
+      document.getElementById("loginauthform").submit();
+    }
+  }
+  var addAnotherEmail = document.getElementById("addanotheremail");
+  if (addAnotherEmail) {
+    addAnotherEmail.onclick = function() {
+      // Not implemented yet.
+    }
+  }
+  var isNotMe = document.getElementById("isnotme");
+  if (isNotMe) {
+    isNotMe.onclick = function() {
+      location.href = location.href + "&logout=1";
+    }
+  }
 }