abp
abp copied to clipboard
Cannot get value in AppSettings on the default page of AbpFramework, such as in Login.cshtml.cs
Is there an existing issue for this?
- [X] I have searched the existing issues
Description
How to get value in appsettings in Page default of Abp as Login.cshtml.cs
In the picture, _mfaConfig always returns null even though I registered it in the AuthServerModule.
var mfaConfig = configuration.GetSection(nameof(MfaConfig)).Get<MfaConfig>();
context.Services.AddSingleton(mfaConfig);
Reproduction Steps
No response
Expected behavior
No response
Actual behavior
No response
Regression?
No response
Known Workarounds
No response
Version
ABP Framwork 8.1
User Interface
Common (Default)
Database Provider
EF Core (Default)
Tiered or separate authentication server
None (Default)
Operation System
Windows (Default)
Other information
No response
This is not an issue . You can check the document https://learn.microsoft.com/en-us/aspnet/core/fundamentals/configuration/options?view=aspnetcore-8.0 https://docs.abp.io/en/abp/latest/Options