File size: 216 Bytes
56b6519
 
 
 
 
 
 
1
2
3
4
5
6
7
8
// Check if user's password match password policy
function strongPassword(password) {
  var regExp = /(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}/;
  return regExp.test(password);
}

exports.strongPassword = strongPassword;