You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.2 KiB
35 lines
1.2 KiB
using Volo.Abp.Account.Localization;
|
|
using Volo.Abp.Account.Settings;
|
|
using Volo.Abp.Localization;
|
|
using Volo.Abp.Settings;
|
|
|
|
namespace LINGYUN.Abp.BackendAdmin.Settings
|
|
{
|
|
// 后台管理项目不引用 Volo.Abp.Account.Application模块,只能自建一个配置
|
|
public class AccountSettingDefinitionProvider : SettingDefinitionProvider
|
|
{
|
|
public override void Define(ISettingDefinitionContext context)
|
|
{
|
|
context.Add(
|
|
new SettingDefinition(
|
|
AccountSettingNames.IsSelfRegistrationEnabled,
|
|
"true",
|
|
L("DisplayName:Abp.Account.IsSelfRegistrationEnabled"),
|
|
L("Description:Abp.Account.IsSelfRegistrationEnabled"), isVisibleToClients: true)
|
|
);
|
|
|
|
context.Add(
|
|
new SettingDefinition(
|
|
AccountSettingNames.EnableLocalLogin,
|
|
"true",
|
|
L("DisplayName:Abp.Account.EnableLocalLogin"),
|
|
L("Description:Abp.Account.EnableLocalLogin"), isVisibleToClients: true)
|
|
);
|
|
}
|
|
|
|
private static LocalizableString L(string name)
|
|
{
|
|
return LocalizableString.Create<AccountResource>(name);
|
|
}
|
|
}
|
|
}
|
|
|