Skip to content

Commit

Permalink
Correcting password type check in PasswordType
Browse files Browse the repository at this point in the history
  • Loading branch information
Vito Belgiorno-Zegna authored and molomby committed Oct 16, 2017
1 parent 3551765 commit b3e5af0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fields/types/password/PasswordType.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ var validate = password.validate = function (pass, confirm, min, max, complexity
}

for (var prop in complexity) {
if (complexity[prop] && typeof password === 'string') {
if (complexity[prop] && typeof pass === 'string') {
var complexityCheck = (regexChunk[prop]).test(pass);
if (!complexityCheck) {
detail += detailMsg[prop] + '\n';
Expand Down

0 comments on commit b3e5af0

Please sign in to comment.