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