diff --git a/src/OrchardCore.Modules/OrchardCore.Users/Services/ExternalLoginFormEvents.cs b/src/OrchardCore.Modules/OrchardCore.Users/Services/ExternalLoginFormEvents.cs index 98b58eeca09..b21bb5b970d 100644 --- a/src/OrchardCore.Modules/OrchardCore.Users/Services/ExternalLoginFormEvents.cs +++ b/src/OrchardCore.Modules/OrchardCore.Users/Services/ExternalLoginFormEvents.cs @@ -39,7 +39,12 @@ public Task IsLockedOutAsync(IUser user) => Task.CompletedTask; public Task LoggedInAsync(IUser user) - => Task.CompletedTask; + { + var tempData = _tempDataDictionaryFactory.GetTempData(_httpContextAccessor.HttpContext); + tempData.Remove(ExternalLoginAutoRedirectKeyName); + + return Task.CompletedTask; + } public async Task LoggingInAsync() {