mirror of
https://github.com/getnamingo/registry.git
synced 2025-08-05 17:18:04 +02:00
More updates about WebAuthn
This commit is contained in:
parent
e7ddc2e997
commit
6466545c90
2 changed files with 40 additions and 6 deletions
|
@ -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 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue