diff --git a/src/lib/validate.js b/src/lib/validate.js index 9131a5a3e..8550946cf 100644 --- a/src/lib/validate.js +++ b/src/lib/validate.js @@ -50,9 +50,7 @@ module.exports.validateUsernameRemotely = username => ( module.exports.validatePassword = (password, username) => { if (!password) { return {valid: false, errMsgId: 'general.required'}; - // get length of password, considering unicode symbols as single chars. - // see discussion at https://stackoverflow.com/a/54370584/2308190 - } else if (Array.from(password).length < 6) { + } else if (password.length < 6) { return {valid: false, errMsgId: 'registration.validationPasswordLength'}; } else if (password === 'password') { return {valid: false, errMsgId: 'registration.validationPasswordNotEquals'};