Move passkey login to a button on the login page
All checks were successful
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 35s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 1m41s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
2024-04-25 20:20:43 +10:00
parent f42fe97902
commit 1a5c1eff7b
2 changed files with 25 additions and 9 deletions

View File

@@ -212,7 +212,10 @@ async function passkey_check(csrf_token,redirect)
console.log('Passkey: Process Success');
// Direct to the home page
window.location.href = (redirect !== undefined) ? redirect : '/';
if (data.success)
window.location.href = (redirect !== undefined) ? redirect : '/';
else
alert(data.msg || 'Unknown error occurred');
},
error: function(e,status,error) {
throw new Error(status || 'Unknown error occurred');