Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeNBrito committed Sep 5, 2016
1 parent 01ca893 commit bbe735c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ exports.validate = function(password, options) {
numbers = options.numbers || numbers;
uppercase = options.uppercase || uppercase;
lowercase = options.lowercase || lowercase;
specialCharacters = options.specialCharacters || specialCharacters;

if (!options.specialCharacters) {
specialCharacters = false;
}
prohibitedWords = options.prohibitedWords || prohibitedWords;
}

Expand Down Expand Up @@ -83,4 +86,4 @@ var hasProhibitedWord = function(string, prohibitedWords) {
}

return {result: false};
}
}

0 comments on commit bbe735c

Please sign in to comment.