diff options
author | crupest <crupest@outlook.com> | 2021-02-13 22:15:15 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-13 22:15:15 +0800 |
commit | 2e85c75e96b9ca600467a60673c8177651b1483b (patch) | |
tree | fba5f9521c8d6c1b599050f0b6c317ff1e393475 /BackEnd/Timeline | |
parent | f6552569082c6e8c43ea0769c78a1c998234f9fc (diff) | |
download | timeline-2e85c75e96b9ca600467a60673c8177651b1483b.tar.gz timeline-2e85c75e96b9ca600467a60673c8177651b1483b.tar.bz2 timeline-2e85c75e96b9ca600467a60673c8177651b1483b.zip |
refactor: Remove a deprecated api.
Diffstat (limited to 'BackEnd/Timeline')
-rw-r--r-- | BackEnd/Timeline/Controllers/UserController.cs | 15 |
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]
|