X-Git-Url: https://git-public.kairo.at/?p=authserver.git;a=blobdiff_plain;f=authsystem.js;h=dee8142337666c5fe1c4b3073a50da4b1a40f019;hp=faaf975c36c48f34adcc97495bdd3f535f20bdc8;hb=b217e836543c89d872c8f692e2557c8c43da468f;hpb=0315f1655bebc5a65447218307065571fa3a5c79 diff --git a/authsystem.js b/authsystem.js index faaf975..dee8142 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() { + // Not implemented yet. + } + } + var isNotMe = document.getElementById("isnotme"); + if (isNotMe) { + isNotMe.onclick = function() { + location.href = location.href + "&logout=1"; + } + } }