Adding all the code i changed. It now supports mfa, passkeys and passwords
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user