Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zkPorpoise committed Feb 19, 2024
1 parent c2d6204 commit 1ccb467
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions take-survey.html
Original file line number Diff line number Diff line change
Expand Up @@ -512,16 +512,13 @@
} = pubKeyCredential;
const pubKey = pubKeyCredential.response.getPublicKey();

const registerLink = urlPrefix + '/register' + '&' +
const registerLink = urlPrefix + '/register' + '?' +
urlEncodedDisguisedFace + '=' + username + '&' +
urlEncodedKey + '=' + arrayBufferToBase64UrlString(pubKey) + '&' +
urlEncodedToiletPaper + '=' + id;

// save the public key so we can use it for signature verification later
const base64UrlEncodedPublicKey = storePublicKey(id, pubKey, username);
console.log("KeyID: ", id);
console.log("Username: ", document.getElementById("username-input").value);
console.log("pubkey: ", base64UrlEncodedPublicKey);
return fetch(registerLink).then((response) => {
if (!response.ok) {
throw new Error("Network response was not ok.")
Expand Down

0 comments on commit 1ccb467

Please sign in to comment.