Open Closed

Check if tenant allow new user registration #2470


User avatar
0
shobhit created
  • ABP Framework version: v4.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

How i can check if tenant allow new user registration. i am using below code but it always retuns true.

bool EnableLocalLogin = await SettingProvider.IsTrueAsync(AccountSettingNames.EnableLocalLogin); bool IsSelfRegistrationEnabled = await SettingProvider.IsTrueAsync(AccountSettingNames.IsSelfRegistrationEnabled);


2 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Its set for current tenant when you update it in UI.

  • User Avatar
    0
    shobhit created

    Hello Maliming, Thanks

Made with ❤️ on ABP v8.2.0-preview Updated on March 25, 2024, 15:11