mirror of
https://github.com/DerTyp7/shop-ejs-expressjs.git
synced 2025-10-29 12:32:11 +01:00
15 lines
283 B
JavaScript
15 lines
283 B
JavaScript
|
|
function validate_password(password) {
|
|
var re = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).{8,}$/;
|
|
|
|
if(re.test(password)){
|
|
if(password.length > 8 && password.length < 255){
|
|
return true
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
module.exports = {
|
|
validate_password
|
|
} |