hi
The changes to the AddUpdateClaim method will not work. You may consider storing this value in the cache. Refresh or remove the cache when necessary.
hi
hi
Are there any error logs?
https://aspnetboilerplate.com/Pages/Documents/Email-Sending
hi
www.mydomain.com is host(www).
https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.AspNetCore/AspNetCore/MultiTenancy/DomainTenantResolveContributor.cs#L56
Of course you can also customize the DomainTenantResolveContributor. eg: host.mydomain.com or admin.mydomain.com
hi
The code of appSession exists in wwwroot/Common/Scripts/appSession.js
.
var app = app || {};
(function () {
abp.services.app.session.getCurrentLoginInformations({ async: false })
.done(function (result) {
app.session = result;
});
})();
hi
You can try:
For mvc
var tenancyName = app.session.tenant ? app.session.tenant.tenancyName : null;
For angular
injector AppSessionService
hi
https://github.com/aspnetboilerplate/aspnetboilerplate/blob/a49362fad71deafe1aad7a9566cd6a61676e8e0b/src/Abp.AspNetCore/AspNetCore/ApplicationPartManagerExtensions.cs#L9
hi
UserTokenExpirationWorker will get the tenants info in the host, and then switch to the tenant to execute the deletion of tokens.
It is compatible with hosts and tenants using the same database and different databases.
I don't particularly understand your code, but you can refer to UserTokenExpirationWorker.
If you have a lot of tenants and data, you can consider using sub-jobs in background jobs.
https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.ZeroCore/Authorization/Users/UserTokenExpirationWorker.cs#L40-L66
hi
Are you using EF Core 2.x or 3.x? Please share some code.