Index: ssts-web/src/main/webapp/personalSetting/showModifyPWDWindowByExt.js =================================================================== diff -u -r37652 -r37654 --- ssts-web/src/main/webapp/personalSetting/showModifyPWDWindowByExt.js (.../showModifyPWDWindowByExt.js) (revision 37652) +++ ssts-web/src/main/webapp/personalSetting/showModifyPWDWindowByExt.js (.../showModifyPWDWindowByExt.js) (revision 37654) @@ -21,42 +21,40 @@ minPwdLength = isUndefinedOrNullOrEmpty(minPwdLength) ? 6 : minPwdLength; - if(!passwordNotContainLoginName){ - msg = "密码至少需要"+ minPwdLength +"个字符"; - if(containUppercaseLetter && containLowerCaseLetter){ - msg += ',需要包含大小写字母'; - }else if(containUppercaseLetter){ - msg += ',需要包含大写字母'; - }else if(containLowerCaseLetter){ - msg += ',需要包含小写字母'; - }else if(containLetter){ - msg += ',需要包含字母'; + msg = "密码至少需要"+ minPwdLength +"个字符"; + if(containUppercaseLetter && containLowerCaseLetter){ + msg += ',需要包含大小写字母'; + }else if(containUppercaseLetter){ + msg += ',需要包含大写字母'; + }else if(containLowerCaseLetter){ + msg += ',需要包含小写字母'; + }else if(containLetter){ + msg += ',需要包含字母'; + } + if(containUppercaseLetter || containLowerCaseLetter || containLetter){ + if(containSpecialChar){ + msg += '、特殊字符'; } - if(containUppercaseLetter || containLowerCaseLetter || containLetter){ - if(containSpecialChar){ - msg += '、特殊字符'; - } + if(containNumber){ + msg += '、数字'; + } + }else { + if(containSpecialChar){ + msg += ',需要包含特殊字符'; if(containNumber){ msg += '、数字'; } }else { - if(containSpecialChar){ - msg += ',需要包含特殊字符'; - if(containNumber){ - msg += '、数字'; - } - }else { - if(containNumber){ - msg += ',需要包含数字'; - } + if(containNumber){ + msg += ',需要包含数字'; } } - if(windowsPasswordComplexityReq){ - msg += '中的三项'; - }else if(passwordComplexityReq1){ - msg += '中的两项'; - } } + if(windowsPasswordComplexityReq){ + msg += '中的三项'; + }else if(passwordComplexityReq1){ + msg += '中的两项'; + } } var formObj = new Ext.FormPanel({