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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
3 additions and
0 deletions
-
aspnet-core/modules/account/LINGYUN.Abp.Account.Application.Contracts/LINGYUN/Abp/Account/Dto/IdentitySessionDto.cs
-
aspnet-core/modules/account/LINGYUN.Abp.Account.Application/LINGYUN/Abp/Account/MyProfileAppService.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; } |
|
|
|
|
|
@ -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, |
|
|
|