forked from v4l3n71n/covas-bo
add backoffice
This commit is contained in:
@@ -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){
|
||||
|
Reference in New Issue
Block a user