1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-23 12:25:16 +01:00

new device type. return device & ip info on events

This commit is contained in:
Kyle Spearrin 2017-12-18 13:59:31 -05:00
parent 043de76aa8
commit 7dd2c524de
2 changed files with 8 additions and 1 deletions

View File

@ -18,6 +18,9 @@
IEBrowser = 13, IEBrowser = 13,
UnknownBrowser = 14, UnknownBrowser = 14,
AndroidAmazon = 15, AndroidAmazon = 15,
UWP = 16 UWP = 16,
SafariBrowser = 17,
VivaldiBrowser = 18,
VivaldiExtension = 19
} }
} }

View File

@ -23,6 +23,8 @@ namespace Bit.Core.Models.Api
OrganizationUserId = ev.OrganizationUserId; OrganizationUserId = ev.OrganizationUserId;
ActingUserId = ev.ActingUserId; ActingUserId = ev.ActingUserId;
Date = ev.Date; Date = ev.Date;
DeviceType = ev.DeviceType;
IpAddress = ev.IpAddress;
} }
public EventType Type { get; set; } public EventType Type { get; set; }
@ -34,5 +36,7 @@ namespace Bit.Core.Models.Api
public Guid? OrganizationUserId { get; set; } public Guid? OrganizationUserId { get; set; }
public Guid? ActingUserId { get; set; } public Guid? ActingUserId { get; set; }
public DateTime Date { get; set; } public DateTime Date { get; set; }
public DeviceType? DeviceType { get; set; }
public string IpAddress { get; set; }
} }
} }