More updates about WebAuthn

This commit is contained in:
Pinga 2023-11-18 12:40:37 +02:00
parent e7ddc2e997
commit 6466545c90
2 changed files with 40 additions and 6 deletions

View file

@ -193,8 +193,11 @@ document.addEventListener('DOMContentLoaded', function() {
.then(response => {
if(response.ok) {
// Handle successful registration, e.g., update the UI
alert('Registration successful!');
window.location.reload();
} else {
// Handle registration error
alert('Registration failed: ' + (data.error || 'Unknown error'));
}
})
.catch(error => {