so close!

This commit is contained in:
Roberto Hidalgo 2023-01-04 00:11:17 -06:00
parent 9b75094613
commit 96aa9b1b34
1 changed files with 2 additions and 2 deletions

View File

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