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 | 500b71e094f2ed827f2e85fb6a83a8fb0eaf5d83 (patch) | |
tree | 510628773fefe110de4d80eb268d5c5c3e17d998 /Timeline/Controllers/UserController.cs | |
parent | 825778f4058d107186be66af05b1f8d16cd1e32c (diff) | |
download | timeline-500b71e094f2ed827f2e85fb6a83a8fb0eaf5d83.tar.gz timeline-500b71e094f2ed827f2e85fb6a83a8fb0eaf5d83.tar.bz2 timeline-500b71e094f2ed827f2e85fb6a83a8fb0eaf5d83.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 |