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; break;
case 'none': case 'none':
default: default:
var normalizedLabel = field.label.toLowerCase(); if (!site.username && isField(field.label, _usernameFieldNames)) {
if (!site.username &&
(normalizedLabel === 'email' || normalizedLabel === 'username')) {
site.username = field.value; site.username = field.value;
} }
else if (!site.password && else if (!site.password && isField(field.label, _passwordFieldNames)) {
(normalizedLabel === 'password' || normalizedLabel === 'pw')) {
site.password = field.value; site.password = field.value;
} }
else { else {