mirror of
https://github.com/bitwarden/server
synced 2025-12-19 17:53:44 +00:00
import ciphers, not logins
This commit is contained in:
@@ -5,7 +5,7 @@ namespace Bit.Core.Models.Api
|
||||
public class ImportCiphersRequestModel
|
||||
{
|
||||
public FolderRequestModel[] Folders { get; set; }
|
||||
public LoginRequestModel[] Logins { get; set; }
|
||||
public CipherRequestModel[] Ciphers { get; set; }
|
||||
public KeyValuePair<int, int>[] FolderRelationships { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,6 +124,16 @@ namespace Bit.Core.Models.Api
|
||||
});
|
||||
}
|
||||
|
||||
public CipherDetails ToOrganizationCipherDetails(Guid orgId)
|
||||
{
|
||||
return ToCipherDetails(new CipherDetails
|
||||
{
|
||||
Type = Type,
|
||||
OrganizationId = orgId,
|
||||
Edit = true
|
||||
});
|
||||
}
|
||||
|
||||
public class LoginType
|
||||
{
|
||||
[EncryptedString]
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace Bit.Core.Models.Api
|
||||
public class ImportOrganizationCiphersRequestModel
|
||||
{
|
||||
public CollectionRequestModel[] Collections { get; set; }
|
||||
public LoginRequestModel[] Logins { get; set; }
|
||||
public CipherRequestModel[] Ciphers { get; set; }
|
||||
public KeyValuePair<int, int>[] CollectionRelationships { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user