Update login.php
This commit is contained in:
@@ -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');
|
||||||
}
|
}
|
||||||
@@ -300,6 +302,10 @@ async function checkRegistration() {
|
|||||||
</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();
|
||||||
$conn->close();
|
$conn->close();
|
||||||
|
|||||||
Reference in New Issue
Block a user