use reference field names on clipperz importer

This commit is contained in:
Kyle Spearrin 2016-12-31 14:52:04 -05:00
parent 6496f750b0
commit c684d66ec0
1 changed files with 2 additions and 5 deletions

View File

@ -1673,13 +1673,10 @@
break;
case 'none':
default:
var normalizedLabel = field.label.toLowerCase();
if (!site.username &&
(normalizedLabel === 'email' || normalizedLabel === 'username')) {
if (!site.username && isField(field.label, _usernameFieldNames)) {
site.username = field.value;
}
else if (!site.password &&
(normalizedLabel === 'password' || normalizedLabel === 'pw')) {
else if (!site.password && isField(field.label, _passwordFieldNames)) {
site.password = field.value;
}
else {