Move pasword field ignore list to AutoFillConstants
This commit is contained in:
parent
4e274c2f44
commit
643fc17151
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue