1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-01 08:02:49 -05:00

share service setup

This commit is contained in:
Kyle Spearrin
2017-02-25 23:38:24 -05:00
parent 0caea4ab8b
commit 48cf44f5b2
4 changed files with 34 additions and 6 deletions

View File

@ -8,8 +8,7 @@ namespace Bit.Api.Models
public class ShareRequestModel
{
[Required]
[StringLength(36)]
public string UserId { get; set; }
public string Email { get; set; }
[Required]
[StringLength(36)]
public string CipherId { get; set; }
@ -25,7 +24,6 @@ namespace Bit.Api.Models
public Share ToShare(Share existingShare)
{
existingShare.UserId = new Guid(UserId);
existingShare.CipherId = new Guid(CipherId);
existingShare.Key = Key;