X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=authsystem.js;h=7a24d84af4b5efde87be187e217d3256c78ffedf;hp=faaf975c36c48f34adcc97495bdd3f535f20bdc8;hb=c4e0aceb5d9e9076effd75de03f4588b65329740;hpb=46f7aedadd9c6b1bb64e72c4c0770d9b1030454f diff --git a/authsystem.js b/authsystem.js index faaf975..7a24d84 100644 --- a/authsystem.js +++ b/authsystem.js @@ -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() { + location.href = "./?addemail"; + } + } + var isNotMe = document.getElementById("isnotme"); + if (isNotMe) { + isNotMe.onclick = function() { + location.href = location.href + "&logout=1"; + } + } }