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