Release v1.0.0 #16
@ -80,8 +80,6 @@ public class AuthController(IOptionsSnapshot<Admin> user, AuthService auth, Pass
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>An Ok response if the logout was successful.</returns>
|
/// <returns>An Ok response if the logout was successful.</returns>
|
||||||
[HttpGet("Logout")]
|
[HttpGet("Logout")]
|
||||||
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
|
||||||
[Authorize]
|
|
||||||
public async Task<ActionResult> Logout()
|
public async Task<ActionResult> Logout()
|
||||||
{
|
{
|
||||||
await auth.LogoutAsync(GetCookieParams(), HttpContext);
|
await auth.LogoutAsync(GetCookieParams(), HttpContext);
|
||||||
|
Reference in New Issue
Block a user