Add ability to change password of another user

This commit is contained in:
Denis Arh
2019-06-26 19:15:01 +02:00
parent 70cac41579
commit 0d299e0f32
9 changed files with 246 additions and 41 deletions
+25
View File
@@ -880,6 +880,31 @@
}
]
}
},
{
"name": "setPassword",
"method": "POST",
"title": "Set's or changes user's password",
"path": "/{userID}/password",
"parameters": {
"path": [
{
"type": "uint64",
"name": "userID",
"required": true,
"title": "User ID"
}
],
"post": [
{
"name": "password",
"type": "string",
"required": true,
"sensitive": true,
"title": "New password"
}
]
}
}
]
},
+25
View File
@@ -219,6 +219,31 @@
}
]
}
},
{
"Name": "setPassword",
"Method": "POST",
"Title": "Set's or changes user's password",
"Path": "/{userID}/password",
"Parameters": {
"path": [
{
"name": "userID",
"required": true,
"title": "User ID",
"type": "uint64"
}
],
"post": [
{
"name": "password",
"required": true,
"sensitive": true,
"title": "New password",
"type": "string"
}
]
}
}
]
}