Update login.php
This commit is contained in:
@@ -242,6 +242,9 @@ async function checkRegistration() {
|
|||||||
<p>Or</p>
|
<p>Or</p>
|
||||||
<button type="button" class="btn btn-primary btn-block" onclick="checkRegistration()">Login with a passkey</button>
|
<button type="button" class="btn btn-primary btn-block" onclick="checkRegistration()">Login with a passkey</button>
|
||||||
<br>
|
<br>
|
||||||
|
<div class="alert alert-danger" role="alert" style="display: none;" id="no_passkey">
|
||||||
|
You do not have a passkey associatet with your account.
|
||||||
|
</div>
|
||||||
<!-- php code to verify password-->
|
<!-- php code to verify password-->
|
||||||
<?php
|
<?php
|
||||||
// Check if the form is submitted
|
// Check if the form is submitted
|
||||||
@@ -302,9 +305,6 @@ 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();
|
||||||
|
|||||||
Reference in New Issue
Block a user