खुला हुआ बंद किया हुआ

Check if tenant allow new user registration #2470


User avatar
0
shobhit बनाया था
  • 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 उत्तर (ओं)
  • User Avatar
    0
    maliming बनाया था
    सहायता दल Fullstack Developer

    hi

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

  • User Avatar
    0
    shobhit बनाया था

    Hello Maliming, Thanks

Made with ❤️ on ABP v8.2.0-preview Updated on मार्च 25, 2024, 15:11