mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +03:00
Don't leak password length through mask (#293)
This commit is contained in:
parent
deb1ead4ea
commit
7c8f6a1cc7
1 changed files with 2 additions and 2 deletions
|
@ -114,7 +114,7 @@ namespace Bit.App.Models.Page
|
|||
}
|
||||
}
|
||||
public string MaskedLoginPassword => RevealLoginPassword ?
|
||||
LoginPassword : LoginPassword == null ? null : new string('•', LoginPassword.Length);
|
||||
LoginPassword : LoginPassword == null ? null : new string('•', 8);
|
||||
public ImageSource LoginShowHideImage => RevealLoginPassword ?
|
||||
ImageSource.FromFile("eye_slash.png") : ImageSource.FromFile("eye.png");
|
||||
|
||||
|
@ -622,7 +622,7 @@ namespace Bit.App.Models.Page
|
|||
{
|
||||
if(_maskedValue == null && Value != null)
|
||||
{
|
||||
_maskedValue = new string('•', Value.Length);
|
||||
_maskedValue = new string('•', 8);
|
||||
}
|
||||
|
||||
return _maskedValue;
|
||||
|
|
Loading…
Reference in a new issue