This commit is contained in:
jakani24
2024-04-04 21:19:46 +02:00
parent 2073859aff
commit c01444711f
3 changed files with 495 additions and 3 deletions

View File

@@ -17,7 +17,7 @@
}
// get create args
let rep = await window.fetch('server.php?fn=getCreateArgs' + getGetParams(), {method:'GET', cache:'no-cache'});
let rep = await window.fetch('create_acc.php?fn=getCreateArgs' + getGetParams(), {method:'GET', cache:'no-cache'});
const createArgs = await rep.json();
// error handling
@@ -40,7 +40,7 @@
};
// check auth on server side
rep = await window.fetch('server.php?fn=processCreate' + getGetParams(), {
rep = await window.fetch('create_acc.php?fn=processCreate' + getGetParams(), {
method : 'POST',
body : JSON.stringify(authenticatorAttestationResponse),
cache : 'no-cache'
@@ -64,7 +64,7 @@
function queryFidoMetaDataService() {
window.fetch('server.php?fn=queryFidoMetaDataService' + getGetParams(), {method:'GET',cache:'no-cache'}).then(function(response) {
window.fetch('create_acc.php?fn=queryFidoMetaDataService' + getGetParams(), {method:'GET',cache:'no-cache'}).then(function(response) {
return response.json();
}).then(function(json) {