mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-07 09:31:31 +01:00
Added limit to length of password when autofilling if max password length exists (#918)
This commit is contained in:
parent
c5f02f5cfb
commit
bfb87dbd15
@ -392,7 +392,8 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
filledFields[p.opid] = p;
|
||||
fillScript.script.push(['click_on_opid', p.opid]);
|
||||
fillScript.script.push(['focus_by_opid', p.opid]);
|
||||
fillScript.script.push(['fill_by_opid', p.opid, login.password]);
|
||||
const passwordLength: number = p.maxLength && p.maxLength > 0 ? p.maxLength : login.password.length;
|
||||
fillScript.script.push(['fill_by_opid', p.opid, login.password.substring(0, passwordLength)]);
|
||||
});
|
||||
|
||||
fillScript = this.setFillScriptForFocus(filledFields, fillScript);
|
||||
|
Loading…
Reference in New Issue
Block a user