abp icon indicating copy to clipboard operation
abp copied to clipboard

Cannot get value in AppSettings on the default page of AbpFramework, such as in Login.cshtml.cs

Open ynkdqe opened this issue 1 year ago • 1 comments

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 image 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

ynkdqe avatar May 24 '24 03:05 ynkdqe

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

realLiangshiwei avatar May 24 '24 05:05 realLiangshiwei