Case insensitive check

This commit is contained in:
varjolintu 2026-03-01 08:35:25 +02:00
parent 9bd3aff004
commit bce39dd47d

View file

@ -67,7 +67,8 @@ kpxcForm.getFormSubmitButton = function(form) {
}
const hasPasswordClassOrId = (button) => button
&& (button?.classList.value?.includes('password') || button?.id?.includes('password'));
&& (button?.classList.value?.toLowerCase()?.includes('password')
|| button?.id?.toLowerCase()?.includes('password'));
const action = kpxc.submitUrl || form.action;
// Check if the site needs a special handling for retrieving the form submit button