Search code examples
abp-framework

Where is IsSelfRegistrationEnabled set in abp framework?


In the ABP Framework, the Login.cshtml page has this line:

@if (await SettingProvider.IsTrueAsync(AccountSettingNames.IsSelfRegistrationEnabled))

How can this setting be changed?

Thanks


Solution

  • In the Identity server project, in the file appsettings.json, set the key Abp.Account.IsSelfRegistrationEnabled with the value false.

    {  
      "Settings":
      {
          "Abp.Account.IsSelfRegistrationEnabled": "false" 
      }
    }