| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 12x 1x | /**
* Use some basic rules to determine password validity/strength
*
* @category utils
*
* @param {String} [password=''] The input will be check against password rules
* @return {Boolean} Is the in input a valid {string} password
*/
function isValidPassword(password = '') {
return typeof password === 'string' && password.length > 7;
}
module.exports = {
isValidPassword,
};
|