add backoffice

This commit is contained in:
2023-11-03 21:36:53 +01:00
parent 689cd27e73
commit e485acb062
2 changed files with 4 additions and 5 deletions

View File

@@ -122,8 +122,7 @@ if(id.length > 0){
}
dataPut = {
"id": id,
"id": document.getElementById("idUpdateInput").value,
"username": document.getElementById("usernameUpdateInput").value,
"email": document.getElementById("emailUpdateInput").value,
"name": document.getElementById("nameUpdateInput").value,
@@ -140,7 +139,7 @@ if(id.length > 0){
}
instance({
method : "put",
url:"users",
url:"users/"+document.getElementById("idUpdateInput").value,
withCredentials: true,
data: dataPut
}).then(function(response){