0
learnabp created
When the user is not logged in I would like to user the __teantid= parament to set the teannt but it doesn't seem to be working.
can you please help
6 Answer(s)
-
0
hi
It's should be
__tenant
by default.https://docs.abp.io/en/abp/latest/Multi-Tenancy#abpaspnetcoremultitenancyoptions
-
0
i have tried that it does wirk unless the user is authenticated
-
0
-
0
hi
You can try to rewrite the logic of the page.
abp\lepton-theme\src\Volo.Abp.AspNetCore.Mvc.UI.Theme.Lepton\Themes\Lepton\Layouts\Account\Default.cshtml
Change
@if (MultiTenancyOptions.Value.IsEnabled && (TenantResolveResultAccessor.Result?.AppliedResolvers?.Contains(CookieTenantResolveContributor.ContributorName) == true)) { }
to
@if (MultiTenancyOptions.Value.IsEnabled && (TenantResolveResultAccessor.Result?.AppliedResolvers?.Contains(CookieTenantResolveContributor.ContributorName) == true || TenantResolveResultAccessor.Result?.AppliedResolvers?.Contains(QueryStringTenantResolveContributor.ContributorName) == true)) { }
-
0
We will do same change in 4.4
https://github.com/abpframework/abp/pull/9510
-
0
This question has been automatically marked as stale because it has not had recent activity.