打开 关闭

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