mirror of
https://github.com/bitwarden/mobile
synced 2025-12-05 23:53:33 +00:00
Don't leak password length through mask (#293)
This commit is contained in:
committed by
Kyle Spearrin
parent
deb1ead4ea
commit
7c8f6a1cc7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user