Open Closed

Tenant selection based on username/email #3228


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:"
  1. Current process
    1. go to app
    2. navigate to identity page
    3. select tenant
    4. enter username/ email
    5. enter password
    6. login done
  2. New expected process
    1. go to app
    2. navigate to identity page
    3. enter username/email
    4. if username/email matches then populate all tenant. user can select the desired tenant from the list.
    5. if username/email don't match then user can search the tenant. (current way)
    6. enter password
    7. login done

Is it feasible to get done option 2. If yes, then how we can achieve this.


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

    hi

    You can switch to the Host side, then query all tenants, and then switch to the tenant side to try to match the email/username

    https://docs.abp.io/en/abp/latest/Multi-Tenancy#change-the-current-tenant

  • User Avatar
    0
    shobhit created

    Hello Maliming, Thanks. Can you also guide me where i have to make these changes i.e. project and file.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Mainly the account module, because there may be many changes, I suggest you download the source code of the module.

  • User Avatar
    0
    shobhit created

    Hello maliming, As i am not the expert in ABP features. can you help me out with sample where i have to make changes.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    We provide the source code of the module, you can check it first

    please feedback if you have any problems.

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