Skip to content

Commit

Permalink
fix: fixed arbitrary length check (not sure why it was here; closes #192
Browse files Browse the repository at this point in the history
)
  • Loading branch information
titanism committed Aug 17, 2023
1 parent 5d6ff76 commit cb766ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ const config = {
iterations: 25000,
keylen: 512,
passwordValidator(password, fn) {
if (typeof password !== 'string' || password.length > 64) {
if (typeof password !== 'string') {
const err = Boom.badRequest(phrases.INVALID_PASSWORD_STRENGTH);
err.no_translate = true;
return fn(err);
Expand Down

0 comments on commit cb766ef

Please sign in to comment.