/**
- @param $password string 明文密码
- @return array
- 检测密码合法性 大、小写英文字母、数字、特殊字符 4选3;且长度大于等于8位
/
function check_password_legal(KaTeX parse error: Expected '}', got 'EOF' at end of input: …"/^(?![a-zA-Z]+)(?![A-Z0-9]+KaTeX parse error: Undefined control sequence: \W at position 9: )(?![A-Z\̲W̲_!@#%&*`~()-+=]+$)(?![a-z0-9]+$)(?![a-z\W_!@#$%^&*`~()-+=]+$)(?![0-9\W_!@#$%&~()-+=]+$)[a-zA-Z0-9\W_!@#$%^&*
~()-+=]{8,}$/", $password)) {
return false;
} else {
return true ;
}
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)