mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Automatically submit login forms when site preference override for the setting is present
This commit is contained in:
parent
67eff0f3cc
commit
bd44d20ee1
1 changed files with 10 additions and 1 deletions
|
|
@ -316,7 +316,16 @@ kpxcFill.fillInStringFields = function(fields, stringFields) {
|
|||
|
||||
// Performs Auto-Submit. If filling single credentials is enabled, a 5 second timeout will be needed for fill
|
||||
kpxcFill.performAutoSubmit = async function(combination, skipAutoSubmit) {
|
||||
if (!kpxc.settings.autoSubmit) {
|
||||
// Check for site preference overrides
|
||||
const sitePreference = kpxc.retrieveSitePreference();
|
||||
let autoSubmitSitePreference = false;
|
||||
if (sitePreference !== null && sitePreference !== undefined) {
|
||||
if (sitePreference.autoSubmit === true || sitePreference.autoSubmit === false) {
|
||||
autoSubmitSitePreference = sitePreference.autoSubmit;
|
||||
}
|
||||
}
|
||||
|
||||
if (!kpxc.settings.autoSubmit && !autoSubmitSitePreference) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue