mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Add missing checks for StringFields
This commit is contained in:
parent
24f3dcb6de
commit
16e08b470b
1 changed files with 2 additions and 2 deletions
|
|
@ -941,7 +941,7 @@ kpxc.fillInCredentials = async function(combination, predefinedUsername, uuid, p
|
|||
}
|
||||
|
||||
// Fill StringFields
|
||||
if (selectedCredentials.stringFields.length > 0) {
|
||||
if (selectedCredentials.stringFields && selectedCredentials.stringFields.length > 0) {
|
||||
kpxc.fillInStringFields(combination.fields, selectedCredentials.stringFields);
|
||||
}
|
||||
|
||||
|
|
@ -1502,7 +1502,7 @@ kpxc.updateTOTPList = async function() {
|
|||
const password = kpxc.credentials[index].password;
|
||||
|
||||
// If no username is set, compare with a password
|
||||
const credentialList = kpxc.credentials.filter(c => (c.totp || c.stringFields.some(s => s['KPH: {TOTP}']))
|
||||
const credentialList = kpxc.credentials.filter(c => (c.totp || (c.stringFields && c.stringFields.some(s => s['KPH: {TOTP}'])))
|
||||
&& (c.login === username || (!username && c.password === password)));
|
||||
|
||||
// Filter TOTP Autocomplete Menu with matching 2FA credentials
|
||||
|
|
|
|||
Loading…
Reference in a new issue