Prevents password fill if input already has some data

This commit is contained in:
varjolintu 2018-03-04 09:34:49 +02:00 committed by Janek Bevendorff
parent 86942eb261
commit c31243fec1

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);
}
}