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