Adding all the code i changed. It now supports mfa, passkeys and passwords

This commit is contained in:
Janis Steiner
2024-12-25 23:56:19 +01:00
parent ea743d19e9
commit e8cba3edf6
49 changed files with 7730 additions and 24 deletions

View File

@@ -27,6 +27,11 @@
<div class="d-grid gap-2">
<!-- Login Button -->
<button type="submit" class="btn btn-primary btn-lg">Check</button>
<?php
if($_SESSION["passkey_required"]==1){
echo('<a class="btn btn-primary btn-lg" href="/login/passkey.php">Use passkey instead</a>');
}
?>
</div>
</form>
</div>
@@ -66,7 +71,7 @@
// Check if username is empty (just in case)
if (!password) {
alert('Please enter a username.');
alert('Please enter a password.');
return;
}
try {