diff options
author | crupest <crupest@outlook.com> | 2019-04-15 22:06:58 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2019-04-15 22:06:58 +0800 |
commit | 5e3e007c28fac571e5bcfa57f371b640342defb7 (patch) | |
tree | 510628773fefe110de4d80eb268d5c5c3e17d998 /Timeline/Controllers/UserController.cs | |
parent | 56c51bdf844ce1e3642dcdc4099187e7e57008c7 (diff) | |
download | timeline-5e3e007c28fac571e5bcfa57f371b640342defb7.tar.gz timeline-5e3e007c28fac571e5bcfa57f371b640342defb7.tar.bz2 timeline-5e3e007c28fac571e5bcfa57f371b640342defb7.zip |
Rename ValidateToken to VerifyToken.
Diffstat (limited to 'Timeline/Controllers/UserController.cs')
-rw-r--r-- | Timeline/Controllers/UserController.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Timeline/Controllers/UserController.cs b/Timeline/Controllers/UserController.cs index 3b4e7b4f..147724c1 100644 --- a/Timeline/Controllers/UserController.cs +++ b/Timeline/Controllers/UserController.cs @@ -53,19 +53,19 @@ namespace Timeline.Controllers [HttpPost("[action]")] [AllowAnonymous] - public async Task<ActionResult<TokenValidationResponse>> ValidateToken([FromBody] TokenValidationRequest request) + public async Task<ActionResult<VerifyTokenResponse>> VerifyToken([FromBody] VerifyTokenRequest request) { var result = await _userService.VerifyToken(request.Token); if (result == null) { - return Ok(new TokenValidationResponse + return Ok(new VerifyTokenResponse { IsValid = false, }); } - return Ok(new TokenValidationResponse + return Ok(new VerifyTokenResponse { IsValid = true, UserInfo = result |