随笔分类 -  php

摘要:检测密码强度function _getPasswordStrength(password) { return 0 // if password bigger than 5 give 1 point + +(password.length > 5) // if password has both lower and uppercase characters give 1 point + +(/[a-z]/.test(password) && /[A-Z]/.test(password)) // if password h... 阅读全文
posted @ 2013-11-04 19:15 盗草人 阅读(349) 评论(0) 推荐(0)