0
rsbdotph created
version: 10.2 product type: MVC framework type: .net core
My project is a multitenant - single instance with each tenant having its own database. I need help to do this:
- Login using email and password.
- Upon successful login, the system will identify his tenant based on the unique email.
- The system will connect to the correct tenant database.
1 Answer(s)
-
0
Hi @rsbdotph
If your app doesn't know the tenant before login, you can first find the user's tenant in AbpUserAccounts table by querying this table with user's email address. Then, you can swithc to tenant context and execute the login operation. Rest of the process should work liek you want.