Skip to content

Commit

Permalink
#407 fixed missing email when wrong login code is entered
Browse files Browse the repository at this point in the history
  • Loading branch information
io53 committed Apr 23, 2024
1 parent 116a720 commit f7be40a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/iframelogin.html
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@
let cookie = document.cookie;
return (cookie && cookie.indexOf("station_status=signedIn") !== -1)
}
let email = ""
function login() {
let email = document.getElementById("emailInput").value
email = document.getElementById("emailInput").value
if (!email) return
setView("view_loading")
fetch(apiUrl + "/register", {
Expand Down Expand Up @@ -286,7 +287,7 @@
for (let i = 0; i < 4; i++) {
document.getElementById(`pin_${i + 1}`).value = ""
}
setView("view_code")
setView("view_code", email)
}
})
.catch(error => {
Expand Down

0 comments on commit f7be40a

Please sign in to comment.