This commit is contained in:
nicolas.dorier 2019-07-14 22:25:43 +09:00
parent fd4a27c1a3
commit d176a16caa
No known key found for this signature in database
GPG key ID: 6618763EF09186FE

View file

@ -74,7 +74,7 @@ namespace BTCPayServer.Controllers
public async Task<IActionResult> Login(string returnUrl = null)
{
if (User.Identity.IsAuthenticated)
RedirectToLocal(returnUrl);
return RedirectToLocal(returnUrl);
// Clear the existing external cookie to ensure a clean login process
await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);