Update add_passkey.php
This commit is contained in:
@@ -19,7 +19,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// get create args
|
// get create args
|
||||||
let rep = await window.fetch('/insecure_zone/php/create_admin_backend.php?fn=getCreateArgs' + getGetParams(), {method:'GET', cache:'no-cache'});
|
let rep = await window.fetch('/system/insecure_zone/php/create_admin_backend.php?fn=getCreateArgs' + getGetParams(), {method:'GET', cache:'no-cache'});
|
||||||
const createArgs = await rep.json();
|
const createArgs = await rep.json();
|
||||||
|
|
||||||
// error handling
|
// error handling
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
// check auth on server side
|
// check auth on server side
|
||||||
rep = await window.fetch('/insecure_zone/php/create_admin_backend.php?fn=processCreate' + getGetParams(), {
|
rep = await window.fetch('/system/insecure_zone/php/create_admin_backend.php?fn=processCreate' + getGetParams(), {
|
||||||
method : 'POST',
|
method : 'POST',
|
||||||
body : JSON.stringify(authenticatorAttestationResponse),
|
body : JSON.stringify(authenticatorAttestationResponse),
|
||||||
cache : 'no-cache'
|
cache : 'no-cache'
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
|
|
||||||
|
|
||||||
function queryFidoMetaDataService() {
|
function queryFidoMetaDataService() {
|
||||||
window.fetch('/insecure_zone/php/create_admin_backend.php?fn=queryFidoMetaDataService' + getGetParams(), {method:'GET',cache:'no-cache'}).then(function(response) {
|
window.fetch('/system/insecure_zone/php/create_admin_backend.php?fn=queryFidoMetaDataService' + getGetParams(), {method:'GET',cache:'no-cache'}).then(function(response) {
|
||||||
return response.json();
|
return response.json();
|
||||||
|
|
||||||
}).then(function(json) {
|
}).then(function(json) {
|
||||||
|
|||||||
Reference in New Issue
Block a user