function checkPassword(password, password_repeat) {
let p = /^(?=.*[0-9])(?=.*[!@#$%^&*])[a-zA-Z0-9!@#$%^&*]{20,150}$/;
if (password.match(p) == password_repeat) {
return true;
} else {
return false;
}
}
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
function checkPassword(password, password_repeat) {
let p = /^(?=.*[0-9])(?=.*[!@#$%^&*])[a-zA-Z0-9!@#$%^&*]{20,150}$/;
if (password.match(p) == password_repeat) {
return true;
} else {
return false;
}
}