Skip to content
This repository was archived by the owner on Mar 17, 2023. It is now read-only.

Commit 84c80b5

Browse files
committed
bug fix
1 parent 0fd52ef commit 84c80b5

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Source/Services/RPSLS.Web/Controllers/AccountController.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,8 @@ public async Task<IActionResult> Login([FromQuery] string username, [FromQuery]
4747
[HttpGet("logout")]
4848
public async Task<IActionResult> Logout()
4949
{
50-
if (HttpContext.User.Identity.AuthenticationType == TwitterDefaults.AuthenticationScheme)
51-
{
52-
await HttpContext.SignOutAsync(TwitterDefaults.AuthenticationScheme);
53-
}
54-
else
55-
{
56-
await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
57-
}
50+
await HttpContext.SignOutAsync(CookieAuthenticationDefaults.AuthenticationScheme);
51+
5852
_logger.LogInformation($"Logout Completed");
5953
return Redirect(REDIRECT_URI);
6054
}

0 commit comments

Comments
 (0)