auditforge / backend /src /lib /passwordpolicy.js
Kaballas's picture
initialize project structure with essential configurations and components
56b6519
raw
history blame contribute delete
216 Bytes
// 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;