Ouvert Fermé

Check if tenant allow new user registration #2470


User avatar
0
shobhit créé
  • 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 Réponse (s)
  • User Avatar
    0
    maliming créé
    Équipe d'assistance Fullstack Developer

    hi

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

  • User Avatar
    0
    shobhit créé

    Hello Maliming, Thanks

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