aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-02-13 22:15:15 +0800
committercrupest <crupest@outlook.com>2021-02-13 22:15:15 +0800
commitd22f85818c9257839b093a6fd299f0ea00a075fa (patch)
treeeb4658992d3af5f3fda89844f739a953b0991bd3 /BackEnd/Timeline
parent80db1bec293dd7ab5d9c5c457708555249ec8129 (diff)
downloadtimeline-d22f85818c9257839b093a6fd299f0ea00a075fa.tar.gz
timeline-d22f85818c9257839b093a6fd299f0ea00a075fa.tar.bz2
timeline-d22f85818c9257839b093a6fd299f0ea00a075fa.zip
refactor: Remove a deprecated api.
Diffstat (limited to 'BackEnd/Timeline')
-rw-r--r--BackEnd/Timeline/Controllers/UserController.cs15
1 files changed, 0 insertions, 15 deletions
diff --git a/BackEnd/Timeline/Controllers/UserController.cs b/BackEnd/Timeline/Controllers/UserController.cs
index 4091174c..b6eaf152 100644
--- a/BackEnd/Timeline/Controllers/UserController.cs
+++ b/BackEnd/Timeline/Controllers/UserController.cs
@@ -183,21 +183,6 @@ namespace Timeline.Controllers
}
/// <summary>
- /// Create a new user. You have to be administrator.
- /// </summary>
- /// <returns>The new user's info.</returns>
- [HttpPost("userop/createuser"), PermissionAuthorize(UserPermission.UserManagement)]
- [ProducesResponseType(StatusCodes.Status200OK)]
- [ProducesResponseType(StatusCodes.Status400BadRequest)]
- [ProducesResponseType(StatusCodes.Status401Unauthorized)]
- [ProducesResponseType(StatusCodes.Status403Forbidden)]
- [Obsolete("Use post instead.")]
- public async Task<ActionResult<HttpUser>> CreateUser([FromBody] HttpCreateUserRequest body)
- {
- return await Post(body);
- }
-
- /// <summary>
/// Change password with old password.
/// </summary>
[HttpPost("userop/changepassword"), Authorize]