Update create_acc.html
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user