1
0
mirror of https://github.com/bitwarden/mobile synced 2026-01-20 09:23:50 +00:00

add password history and updated dates

This commit is contained in:
Kyle Spearrin
2018-07-30 13:15:53 -04:00
parent 13b9e01604
commit 01d9ccc110
16 changed files with 188 additions and 3 deletions

View File

@@ -13,12 +13,14 @@ namespace Bit.App.Models.Api
Uris = cipher.Login.Uris?.Select(u => new LoginUriType(u));
Username = cipher.Login.Username?.EncryptedString;
Password = cipher.Login.Password?.EncryptedString;
Totp = cipher.Login.Totp?.EncryptedString;
}
public IEnumerable<LoginUriType> Uris { get; set; }
public string Username { get; set; }
public string Password { get; set; }
public System.DateTime? PasswordRevisionDate { get; set; }
public string Totp { get; set; }
}
}

View File

@@ -46,6 +46,7 @@ namespace Bit.App.Models.Api
public string Name { get; set; }
public string Notes { get; set; }
public IEnumerable<FieldType> Fields { get; set; }
public IEnumerable<PasswordHistoryResponse> PasswordHistory { get; set; }
public LoginType Login { get; set; }
public CardType Card { get; set; }

View File

@@ -0,0 +1,8 @@
namespace Bit.App.Models.Api
{
public class PasswordHistoryRequest
{
public string Password { get; set; }
public System.DateTime LastUsedDate { get; set; }
}
}

View File

@@ -22,6 +22,7 @@ namespace Bit.App.Models.Api
public SecureNoteType SecureNote { get; set; }
public IEnumerable<FieldType> Fields { get; set; }
public IEnumerable<AttachmentResponse> Attachments { get; set; }
public IEnumerable<PasswordHistoryResponse> PasswordHistory { get; set; }
public IEnumerable<string> CollectionIds { get; set; }
public DateTime RevisionDate { get; set; }
}

View File

@@ -0,0 +1,8 @@
namespace Bit.App.Models.Api
{
public class PasswordHistoryResponse
{
public string Password { get; set; }
public System.DateTime LastUsedDate { get; set; }
}
}