Authored by htoooth

加强密码

... ... @@ -13,9 +13,9 @@ function computeComplex(password) {
if (length === 0) {
lengthS = 0;
} else if (length <= 6 && length > 0) {
} else if (length < 6 && length > 0) {
lengthS = 0 + isAllNumberOrAlph(password);
} else if (length > 6 && length <= 16) {
} else if (length >= 6 && length <= 16) {
lengthS = 1 + isAllNumberOrAlph(password);
} else {
lengthS = 2 + isAllNumberOrAlph(password);
... ...