Update create_acc.html

This commit is contained in:
jakani24
2024-04-04 21:14:32 +02:00
parent ab1abcfef6
commit d479ceb823

View File

@@ -51,7 +51,6 @@
if (authenticatorAttestationServerResponse.success) {
reloadServerPreview();
window.alert(authenticatorAttestationServerResponse.msg || 'registration success');
alert(1);
} else {
throw new Error(authenticatorAttestationServerResponse.msg);
}
@@ -202,13 +201,13 @@
if (location.protocol !== 'https:' && location.host !== 'localhost') {
location.href = location.href.replace('http', 'https');
}
if (!document.getElementById('rpId').value) {
document.getElementById('rpId').value = location.hostname;
}
//if (!document.getElementById('rpId').value) {
// document.getElementById('rpId').value = location.hostname;
//}
if (!document.getElementById('attestation_yes').checked) {
setAttestation(false);
}
//if (!document.getElementById('attestation_yes').checked) {
// setAttestation(false);
//}
}
</script>