Skip to content

Commit

Permalink
AllowAnonymous to verify-email
Browse files Browse the repository at this point in the history
  • Loading branch information
minsoeaung committed Dec 10, 2023
1 parent e0febdf commit a226acd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions API/Controllers/AccountsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,7 @@ public async Task<ActionResult<TokenResult>> Refresh()
return _tokenService.GenerateAccessToken(userLogin.User, await _userManager.GetRolesAsync(userLogin.User));
}

[AllowAnonymous]
[HttpGet("logout")]
public async Task<IActionResult> Logout()
{
Expand All @@ -200,6 +201,7 @@ public async Task<IActionResult> Logout()
return Ok();
}

[AllowAnonymous]
[HttpGet("verify-email")]
public async Task<ActionResult> ConfirmEmail(string userId, string token)
{
Expand Down

0 comments on commit a226acd

Please sign in to comment.