so close!

This commit is contained in:
Roberto Hidalgo 2023-01-04 00:11:17 -06:00
parent 9b75094613
commit 96aa9b1b34

View File

@ -182,7 +182,7 @@ function userFromForm(form) {
async function UpdateUser(form) { async function UpdateUser(form) {
const user = userFromForm(form) const user = userFromForm(form)
let response = await webauthn.withAuth(host + form.getAttribute("action"), { let response = await webauthn.withAuth(form.getAttribute("action"), {
credentials: "include", credentials: "include",
method: "POST", method: "POST",
body: JSON.stringify(user), body: JSON.stringify(user),
@ -201,7 +201,7 @@ async function UpdateUser(form) {
async function CreateUser(form) { async function CreateUser(form) {
const user = userFromForm(form) const user = userFromForm(form)
let response = await webauthn.withAuth(host + form.getAttribute("action"), { let response = await webauthn.withAuth(form.getAttribute("action"), {
credentials: "include", credentials: "include",
method: "POST", method: "POST",
body: JSON.stringify(user), body: JSON.stringify(user),