1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-19 11:15:21 +01:00

Move pasword field ignore list to AutoFillConstants

This commit is contained in:
Daniel James Smith 2022-01-02 15:49:37 +01:00
parent 4e274c2f44
commit 643fc17151
No known key found for this signature in database
GPG Key ID: 03E4BD365FF06726
2 changed files with 8 additions and 2 deletions

View File

@ -834,8 +834,7 @@ export default class AutofillService implements AutofillServiceInterface {
return false; return false;
} }
const ignoreList = ['onetimepassword', 'captcha', 'findanything', 'forgot']; if (AutoFillConstants.PasswordFieldIgnoreList.some(i => cleanedValue.indexOf(i) > -1)) {
if (ignoreList.some(i => cleanedValue.indexOf(i) > -1)) {
return false; return false;
} }

View File

@ -20,6 +20,13 @@ export class AutoFillConstants {
"benutzer id", "benutzer id",
]; ];
static readonly PasswordFieldIgnoreList: string[] = [
"onetimepassword",
"captcha",
"findanything",
"forgot",
];
static readonly ExcludedAutofillTypes: string[] = [ static readonly ExcludedAutofillTypes: string[] = [
"radio", "radio",
"checkbox", "checkbox",