Skip to content

Commit

Permalink
remove falsy values when checking password
Browse files Browse the repository at this point in the history
  • Loading branch information
darrylhein committed Aug 2, 2024
1 parent 9bf962d commit c4df21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/src/common/validation/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default () => {
user?.firstName,
user?.lastName,
...document.title.split(/[\s|]+/),
]).score > 2;
].filter(Boolean)).score > 2;
},
compromised: helpers.withAsync(async function (value) {
if (null === value || value.length < passwordMinLength) {
Expand Down

0 comments on commit c4df21b

Please sign in to comment.