diff --git a/fields/types/password/PasswordType.js b/fields/types/password/PasswordType.js index 0de7f8b52d..f5aa86155c 100644 --- a/fields/types/password/PasswordType.js +++ b/fields/types/password/PasswordType.js @@ -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';