mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Fix detecting submit button on Microsoft Login page (#1741)
Fix detecting submit button on Microsoft Login page
This commit is contained in:
parent
4a6a99dcb9
commit
19595526cf
1 changed files with 13 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ const PREDEFINED_SITELIST = [
|
|||
'https://login.live.com/*',
|
||||
'https://odc.officeapps.live.com/*',
|
||||
'https://login.microsoftonline.com/*',
|
||||
'https://login.microsoftonline.us/*',
|
||||
'https://www.amazon.ae/ap/*',
|
||||
'https://www.amazon.ca/ap/*',
|
||||
'https://www.amazon.cn/ap/*',
|
||||
|
|
@ -193,6 +194,18 @@ kpxcSites.formSubmitButtonExceptionFound = function(form) {
|
|||
if (button) {
|
||||
return button;
|
||||
}
|
||||
} else if (
|
||||
[
|
||||
'outlook.live.com',
|
||||
'login.live.com',
|
||||
'odc.officeapps.live.com',
|
||||
'login.microsoftonline.com',
|
||||
'login.microsoftonline.us',
|
||||
].some(u => form.action.includes(u))) {
|
||||
const buttons = Array.from(form.querySelectorAll(kpxcForm.formButtonQuery));
|
||||
if (buttons && buttons.length > 1) {
|
||||
return buttons[1];
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
|
|
|
|||
Loading…
Reference in a new issue