so close!
This commit is contained in:
parent
9b75094613
commit
96aa9b1b34
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user