aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-04-15 22:25:46 +0800
committerGitHub <noreply@github.com>2019-04-15 22:25:46 +0800
commit1cb92b8f2a98005b793c00e0191903c0792d540a (patch)
tree510628773fefe110de4d80eb268d5c5c3e17d998 /Timeline/Controllers
parent56c51bdf844ce1e3642dcdc4099187e7e57008c7 (diff)
parent5e3e007c28fac571e5bcfa57f371b640342defb7 (diff)
downloadtimeline-1cb92b8f2a98005b793c00e0191903c0792d540a.tar.gz
timeline-1cb92b8f2a98005b793c00e0191903c0792d540a.tar.bz2
timeline-1cb92b8f2a98005b793c00e0191903c0792d540a.zip
Merge pull request #21 from crupest/verifytoken
Rename ValidateToken to VerifyToken.
Diffstat (limited to 'Timeline/Controllers')
-rw-r--r--Timeline/Controllers/UserController.cs6
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