2025-05-09 00:00:55 +02:00

21 lines
530 B
JavaScript

const loginchoice = document.querySelector("main > article.loginchoice")
function selectLoginType(type) {
for (const frame of loginchoice.children) {
frame.setAttribute("hidden", "")
if (frame.getAttribute("frame") == type) {
frame.removeAttribute("hidden")
}
}
if (type == "microsoft") {
system.call(`auth::${type}`)
}
}
system.result("auth::microsoft", () => {
selectLoginType("select")
})
system.result("auth::refresh", () => {
selectLoginType("select")
})