Don't leak password length through mask (#537)

This commit is contained in:
Mark Cohen 2018-03-06 06:41:59 -06:00 committed by Kyle Spearrin
parent a7ffdefd57
commit 1d260cc50b
1 changed files with 1 additions and 4 deletions

View File

@ -94,10 +94,7 @@ angular
return value;
}
var masked = '';
for (var i = 0; i < value.length; i++) {
masked += '•';
}
var masked = '••••••••';
return masked;
};