Remove duplicate notification

The `passwordFillIsAllowed` function should only do a check. The logging is done in the caller
This commit is contained in:
Alexander Grund 2024-04-27 12:41:39 +02:00 committed by GitHub
parent 1ccfbff792
commit b10a12559b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -348,10 +348,5 @@ const passwordFillIsAllowed = function(elem) {
return true;
}
if (elem?.getLowerCaseAttribute('type') !== 'password') {
kpxcUI.createNotification('warning', tr('fieldsPasswordFillNotAccepted'));
return false;
}
return true;
return elem?.getLowerCaseAttribute('type') === 'password';
};