diff --git a/src/OrchardCore.Modules/OrchardCore.Users/TwoFactorAuthenticationStartup.cs b/src/OrchardCore.Modules/OrchardCore.Users/TwoFactorAuthenticationStartup.cs index 96ae240d10c..d4ae0d00720 100644 --- a/src/OrchardCore.Modules/OrchardCore.Users/TwoFactorAuthenticationStartup.cs +++ b/src/OrchardCore.Modules/OrchardCore.Users/TwoFactorAuthenticationStartup.cs @@ -40,6 +40,7 @@ public override void ConfigureServices(IServiceCollection services) options.Filters.Add(); }); + services.AddScoped(); services.AddScoped, TwoFactorUserMenuDisplayDriver>(); services.AddScoped, TwoFactorLoginSettingsDisplayDriver>(); services.AddScoped, TwoFactorMethodDisplayDriver>();