Merge pull request #42 from keepassxreboot/password_fill_fix

Prevents password fill if input already has some data
This commit is contained in:
Janek Bevendorff 2018-03-04 23:32:28 +01:00 committed by GitHub
commit 9ad8ec0bcb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -148,7 +148,7 @@ cipAutocomplete.onBlur = function() {
else {
const fieldId = cipFields.prepareId(jQuery(this).attr('data-cip-id'));
const fields = cipFields.getCombination('username', fieldId);
if (_f(fields.password) && _f(fields.password).data('unchanged') !== true && jQuery(this).val() !== '') {
if (_f(fields.password) && _f(fields.password).data('unchanged') !== true && jQuery(this).val() !== '' && _detectedFields > 1) {
cip.fillInCredentials(fields, true, true);
}
}