mirror of
https://github.com/bitwarden/mobile.git
synced 2025-01-11 19:31:50 +01:00
password updated fixes
This commit is contained in:
parent
a3174d7015
commit
4e4b56d7fe
@ -87,6 +87,6 @@ namespace Bit.App.Models
|
||||
public SecureNote SecureNote { get; set; }
|
||||
|
||||
public System.DateTime? PasswordRevisionDisplayDate =>
|
||||
Login?.Password == null ? (System.DateTime?)null : Login.PasswordRevisionDate ?? RevisionDate;
|
||||
Login?.Password == null ? null : Login.PasswordRevisionDate;
|
||||
}
|
||||
}
|
||||
|
@ -499,7 +499,7 @@ namespace Bit.App.Pages
|
||||
Cipher.Notes = string.IsNullOrWhiteSpace(NotesCell.Editor.Text) ? null :
|
||||
NotesCell.Editor.Text.Encrypt(Cipher.OrganizationId);
|
||||
Cipher.Favorite = FavoriteCell.On;
|
||||
|
||||
|
||||
var passwordHistory = Cipher.PasswordHistory?.ToList() ?? new List<PasswordHistory>();
|
||||
switch(Cipher.Type)
|
||||
{
|
||||
@ -512,6 +512,7 @@ namespace Bit.App.Pages
|
||||
LoginPasswordCell.Entry.Text.Encrypt(Cipher.OrganizationId),
|
||||
Totp = string.IsNullOrWhiteSpace(LoginTotpCell.Entry.Text) ? null :
|
||||
LoginTotpCell.Entry.Text.Encrypt(Cipher.OrganizationId),
|
||||
PasswordRevisionDate = Cipher.Login.PasswordRevisionDate,
|
||||
};
|
||||
|
||||
if(!string.IsNullOrWhiteSpace(_originalLoginPassword) &&
|
||||
@ -671,7 +672,7 @@ namespace Bit.App.Pages
|
||||
Password = (cf.Item1 + ": " + cf.Item2).Encrypt(Cipher.OrganizationId),
|
||||
});
|
||||
}
|
||||
Cipher.PasswordHistory = (passwordHistory?.Count ?? 0) > 0 ? passwordHistory : null;
|
||||
Cipher.PasswordHistory = (passwordHistory?.Count ?? 0) > 0 ? passwordHistory.Take(5) : null;
|
||||
|
||||
await _deviceActionService.ShowLoadingAsync(AppResources.Saving);
|
||||
var saveTask = await _cipherService.SaveAsync(Cipher);
|
||||
|
@ -247,7 +247,7 @@ namespace Bit.App.Pages
|
||||
NotesCell
|
||||
};
|
||||
|
||||
OtherSection = new TableSection(AppResources.Other)
|
||||
OtherSection = new TableSection(Helpers.GetEmptyTableSectionTitle())
|
||||
{
|
||||
revisionDateCell
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user