mirror of
https://github.com/bitwarden/mobile
synced 2025-12-19 01:33:22 +00:00
Add support for hidden passwords (#920)
* Add support for hidden passwords * Hide TOTP, hide hidden fields. * Change _cipher to Cipher.
This commit is contained in:
@@ -684,8 +684,9 @@ namespace Bit.App.Pages
|
||||
public bool IsTextType => _field.Type == Core.Enums.FieldType.Text;
|
||||
public bool IsBooleanType => _field.Type == Core.Enums.FieldType.Boolean;
|
||||
public bool IsHiddenType => _field.Type == Core.Enums.FieldType.Hidden;
|
||||
public bool ShowViewHidden => IsHiddenType && _cipher.ViewPassword;
|
||||
public bool ShowCopyButton => _field.Type != Core.Enums.FieldType.Boolean &&
|
||||
!string.IsNullOrWhiteSpace(_field.Value);
|
||||
!string.IsNullOrWhiteSpace(_field.Value) && !(IsHiddenType && !_cipher.ViewPassword);
|
||||
|
||||
public void ToggleHiddenValue()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user