- ABP Framework version: v5.2.0
- UI type: Angular
- DB provider: EF Core
- Tiered (MVC) or Identity Server Separated (Angular): yes
- Exception message and stack trace: AbpAuditLogs
- Steps to reproduce the issue:" Can we add Ipv4 address into ClientIpAddress field of AuditLog table and Normalize Auditlogs table as it has both TenantId and TenantName fields?
5 Answer(s)
-
0
hi
You can override the
GetClientIpAddress
method to use IPV6 address.https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/WebClientInfo/HttpContextWebClientInfoProvider.cs#L30
Normalize Auditlogs table as it has both TenantId and TenantName fields?
What do you mean? Can you explain?
-
0
hi
You can override the
GetClientIpAddress
method to use IPV6 address.https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.AspNetCore/Volo/Abp/AspNetCore/WebClientInfo/HttpContextWebClientInfoProvider.cs#L30
Normalize Auditlogs table as it has both TenantId and TenantName fields?
What do you mean? Can you explain?
Can't we get tenantName from tenantid as it has foreign key relation, Do we required to add tenantname?
-
0
hi
The** tenant id** may be changed by code, so the caller is responsible for passing the tenant name.
using(currentTenant.Change(tenantId)) { }
-
0
hi
The** tenant id** may be changed by code, so the caller is responsible for passing the tenant name.
using(currentTenant.Change(tenantId)) { }
Okay Thanks
-
0
You're welcome. : )