mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
Move pasword field ignore list to AutoFillConstants
This commit is contained in:
@@ -834,8 +834,7 @@ export default class AutofillService implements AutofillServiceInterface {
|
||||
return false;
|
||||
}
|
||||
|
||||
const ignoreList = ['onetimepassword', 'captcha', 'findanything', 'forgot'];
|
||||
if (ignoreList.some(i => cleanedValue.indexOf(i) > -1)) {
|
||||
if (AutoFillConstants.PasswordFieldIgnoreList.some(i => cleanedValue.indexOf(i) > -1)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,6 +20,13 @@ export class AutoFillConstants {
|
||||
"benutzer id",
|
||||
];
|
||||
|
||||
static readonly PasswordFieldIgnoreList: string[] = [
|
||||
"onetimepassword",
|
||||
"captcha",
|
||||
"findanything",
|
||||
"forgot",
|
||||
];
|
||||
|
||||
static readonly ExcludedAutofillTypes: string[] = [
|
||||
"radio",
|
||||
"checkbox",
|
||||
|
||||
Reference in New Issue
Block a user