Minor fixes

face-detect
Noah Petherbridge 2023-09-18 17:31:02 -07:00
parent c3a3b7e35c
commit 07feaaa4e7
2 changed files with 5 additions and 1 deletions

View File

@ -88,7 +88,7 @@ func Login() http.HandlerFunc {
// Are they submitting the 2FA code?
var (
intent = r.PostFormValue("intent")
code = r.PostFormValue("code")
code = strings.ReplaceAll(r.PostFormValue("code"), " ", "")
)
// Validate the submitted code.

View File

@ -802,6 +802,10 @@ window.addEventListener("DOMContentLoaded", (event) => {
console.log("button %s: ADD is-active", tab_);
tab_.classList.add("is-active");
}
tab_.addEventListener("click", (e) => {
document.querySelector("#"+name_).scrollIntoView();
});
});
$activeTab.style.display = 'block';