Don't leak password length through mask (#537)
This commit is contained in:
parent
a7ffdefd57
commit
1d260cc50b
|
@ -94,10 +94,7 @@ angular
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
var masked = '';
|
var masked = '••••••••';
|
||||||
for (var i = 0; i < value.length; i++) {
|
|
||||||
masked += '•';
|
|
||||||
}
|
|
||||||
return masked;
|
return masked;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue