Skip to content

Commit 6e72067

Browse files
committed
* [FIX] Prevent random password generator to crash when chars are skipped. Thanks to @blabllavita . Closes #1641
Signed-off-by: Rubén D <[email protected]>
1 parent 3b189aa commit 6e72067

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

public/js/app-util.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,9 @@ sysPass.Util = function (log) {
444444
}
445445
}
446446

447-
if (password.config.complexity.uppercase) {
447+
if (password.config.complexity.chars
448+
&& password.config.complexity.uppercase
449+
) {
448450
const chars = password.config.charset.char.toUpperCase();
449451
const res = inPassArray.some(
450452
function (el) {

public/js/app-util.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)