1
0
mirror of https://github.com/bitwarden/server synced 2025-12-19 17:53:44 +00:00

collection externalId

This commit is contained in:
Kyle Spearrin
2019-03-07 15:18:27 -05:00
parent 2684de0fff
commit 75f01a5774
14 changed files with 232 additions and 9 deletions

View File

@@ -13,6 +13,8 @@ namespace Bit.Core.Models.Api
[EncryptedString]
[EncryptedStringLength(1000)]
public string Name { get; set; }
[StringLength(300)]
public string ExternalId { get; set; }
public IEnumerable<SelectionReadOnlyRequestModel> Groups { get; set; }
public Collection ToCollection(Guid orgId)
@@ -26,6 +28,7 @@ namespace Bit.Core.Models.Api
public Collection ToCollection(Collection existingCollection)
{
existingCollection.Name = Name;
existingCollection.ExternalId = ExternalId;
return existingCollection;
}
}