Index: ssts-web/src/main/webapp/personalSetting/modifyPWDByExt.js =================================================================== diff -u -r40883 -r40885 --- ssts-web/src/main/webapp/personalSetting/modifyPWDByExt.js (.../modifyPWDByExt.js) (revision 40883) +++ ssts-web/src/main/webapp/personalSetting/modifyPWDByExt.js (.../modifyPWDByExt.js) (revision 40885) @@ -43,9 +43,9 @@ showResult('新密码与确认新密码不一致,请重新填写!'); return false; } - if (sstsConfig.needBeStrongPwdWhenModifyPwd && sstsConfig.enableTwoFactorAuthentication) { - var verificationCode = Ext4.getCmp('verificationCode').getValue(); - var encryptedUserCode = encrypt.encrypt(verificationCode); + if (sstsConfig.needBeStrongPwdWhenModifyPwd && sstsConfig.enableTwoFactorAuthentication == 1) { + var smsVerificationCode = Ext4.getCmp('smsVerificationCode').getValue(); + var encryptedUserCode = encrypt.encrypt(smsVerificationCode); validateAuthenticationCode(encryptedUserName, encryptedUserCode, function (res) { if (res.success) { save(); @@ -89,7 +89,7 @@ //ZSRY-72:增加密码设置要求提示语 var msg = getModifyPwdMsg(); var hideSenCode = true; - if(msg !== '' && sstsConfig.enableTwoFactorAuthentication){ + if(msg !== '' && sstsConfig.enableTwoFactorAuthentication == 1){ hideSenCode = false; } @@ -146,8 +146,8 @@ items: [{ xtype: 'textfield', fieldLabel: '验证码', - name: 'verificationCode', - id: 'verificationCode', + name: 'smsVerificationCode', + id: 'smsVerificationCode', anchor: '95%', msgTarget: 'side', allowBlank: true