Update login.php

This commit is contained in:
jakani24
2024-04-26 16:25:25 +02:00
parent 09159cefc3
commit 91712fe2ef

View File

@@ -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();