1
0
mirror of https://github.com/bitwarden/server synced 2026-02-25 17:03:22 +00:00

store password history and revision dates

This commit is contained in:
Kyle Spearrin
2018-07-27 17:49:27 -04:00
parent 91765477c5
commit 5c31a35cfe
7 changed files with 55 additions and 3 deletions

View File

@@ -55,6 +55,7 @@ namespace Bit.Core.Models.Api
Name = cipherData.Name;
Notes = cipherData.Notes;
Fields = cipherData.Fields?.Select(f => new CipherFieldModel(f));
PasswordHistory = cipherData.PasswordHistory?.Select(ph => new CipherPasswordHistoryModel(ph));
RevisionDate = cipher.RevisionDate;
OrganizationId = cipher.OrganizationId?.ToString();
Attachments = AttachmentResponseModel.FromCipher(cipher, globalSettings);
@@ -72,6 +73,7 @@ namespace Bit.Core.Models.Api
public CipherIdentityModel Identity { get; set; }
public CipherSecureNoteModel SecureNote { get; set; }
public IEnumerable<CipherFieldModel> Fields { get; set; }
public IEnumerable<CipherPasswordHistoryModel> PasswordHistory { get; set; }
public IEnumerable<AttachmentResponseModel> Attachments { get; set; }
public bool OrganizationUseTotp { get; set; }
public DateTime RevisionDate { get; set; }