Browse Source

Merge pull request #1306 from colinin/mysession-user-id

feat(account): my session returns the user id
pull/1312/head
yx lin 8 months ago
committed by GitHub
parent
commit
90b2182834
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      aspnet-core/modules/account/LINGYUN.Abp.Account.Application.Contracts/LINGYUN/Abp/Account/Dto/IdentitySessionDto.cs
  2. 1
      aspnet-core/modules/account/LINGYUN.Abp.Account.Application/LINGYUN/Abp/Account/MyProfileAppService.cs

2
aspnet-core/modules/account/LINGYUN.Abp.Account.Application.Contracts/LINGYUN/Abp/Account/Dto/IdentitySessionDto.cs

@ -14,6 +14,8 @@ public class IdentitySessionDto : EntityDto<Guid>
public string IpAddresses { get; set; } public string IpAddresses { get; set; }
public Guid UserId { get; set; }
public DateTime SignedIn { get; set; } public DateTime SignedIn { get; set; }
public DateTime? LastAccessed { get; set; } public DateTime? LastAccessed { get; set; }

1
aspnet-core/modules/account/LINGYUN.Abp.Account.Application/LINGYUN/Abp/Account/MyProfileAppService.cs

@ -90,6 +90,7 @@ public class MyProfileAppService : AccountApplicationServiceBase, IMyProfileAppS
SignedIn = session.SignedIn, SignedIn = session.SignedIn,
ClientId = session.ClientId, ClientId = session.ClientId,
Device = session.Device, Device = session.Device,
UserId = session.UserId,
DeviceInfo = session.DeviceInfo, DeviceInfo = session.DeviceInfo,
IpAddresses = session.IpAddresses, IpAddresses = session.IpAddresses,
LastAccessed = session.LastAccessed, LastAccessed = session.LastAccessed,

Loading…
Cancel
Save