diff --git a/BTCPayServer/Controllers/AccountController.cs b/BTCPayServer/Controllers/AccountController.cs index 6a536c85b..00dd36f93 100644 --- a/BTCPayServer/Controllers/AccountController.cs +++ b/BTCPayServer/Controllers/AccountController.cs @@ -74,7 +74,7 @@ namespace BTCPayServer.Controllers public async Task 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);