mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Check that maxLength is above zero
This commit is contained in:
parent
7b9d203b85
commit
f8b5fc87ec
1 changed files with 3 additions and 1 deletions
|
|
@ -254,7 +254,9 @@ kpxcFill.fillInCredentials = async function(combination, predefinedUsername, uui
|
|||
// Fill password
|
||||
if (combination.password) {
|
||||
// Show a notification if password length exceeds the length defined in input
|
||||
if (combination.password.maxLength && selectedCredentials.password.length > combination.password.maxLength) {
|
||||
if (combination.password.maxLength
|
||||
&& combination.password.maxLength > 0
|
||||
&& selectedCredentials.password.length > combination.password.maxLength) {
|
||||
kpxcUI.createNotification('error', tr('errorMessagePaswordLengthExceeded'));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue