mirror of
https://github.com/bitwarden/server
synced 2025-12-17 00:33:23 +00:00
store device type and ip address on events
This commit is contained in:
@@ -5,6 +5,14 @@ namespace Bit.Core.Models.Data
|
||||
{
|
||||
public class EventMessage : IEvent
|
||||
{
|
||||
public EventMessage() { }
|
||||
|
||||
public EventMessage(CurrentContext currentContext)
|
||||
{
|
||||
IpAddress = currentContext.IpAddress;
|
||||
DeviceType = currentContext.DeviceType;
|
||||
}
|
||||
|
||||
public DateTime Date { get; set; }
|
||||
public EventType Type { get; set; }
|
||||
public Guid? UserId { get; set; }
|
||||
@@ -14,5 +22,7 @@ namespace Bit.Core.Models.Data
|
||||
public Guid? GroupId { get; set; }
|
||||
public Guid? OrganizationUserId { get; set; }
|
||||
public Guid? ActingUserId { get; set; }
|
||||
public DeviceType? DeviceType { get; set; }
|
||||
public string IpAddress { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user