Update login.php

This commit is contained in:
jakani24
2024-04-26 16:23:28 +02:00
parent 872ab7f44c
commit 0e7c518c28

View File

@@ -71,6 +71,8 @@ async function checkRegistration() {
if(err.message=="User does not exist"){
//we will display a warning here later on
alert("User does not exist!!! check line 71 of login.html to set warning");
var alert_message=document.getElementById("no_passkey");
alert_message.style.display="block";
}else{
window.alert(err.message || 'unknown error occured');
}
@@ -300,6 +302,10 @@ async function checkRegistration() {
</div>';
}
echo '<div class="alert alert-danger" role="alert" style="display: none;" id="no_passkey">
Incorrect username or password.
</div>';
// Close the connection
$stmt->close();
$conn->close();