1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-10-31 08:20:37 +01:00

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

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 {