mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 15:53:27 +00:00
length check on userInputs
This commit is contained in:
@@ -247,7 +247,7 @@ export class PasswordGenerationService implements PasswordGenerationServiceAbstr
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
let globalUserInputs = ['bitwarden', 'bit', 'warden'];
|
let globalUserInputs = ['bitwarden', 'bit', 'warden'];
|
||||||
if (userInputs != null) {
|
if (userInputs != null && userInputs.length > 0) {
|
||||||
globalUserInputs = globalUserInputs.concat(userInputs);
|
globalUserInputs = globalUserInputs.concat(userInputs);
|
||||||
}
|
}
|
||||||
// Use a hash set to get rid of any duplicate user inputs
|
// Use a hash set to get rid of any duplicate user inputs
|
||||||
|
|||||||
Reference in New Issue
Block a user