| | |
| | | import com.lf.server.helper.RsaHelper; |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.mapper.sys.UserMapper; |
| | | import com.lf.server.service.all.CommonsFileuploadService; |
| | | import com.lf.server.service.all.RedisService; |
| | | import org.apache.commons.logging.Log; |
| | | import org.apache.commons.logging.LogFactory; |
| | |
| | | // 解密 |
| | | String uid = RsaHelper.decrypt(entity.getUid()); |
| | | /*String pwd = RsaHelper.decrypt(entity.getPwd()); |
| | | if (!StringHelper.checkPwdValid(pwd)) { |
| | | if (!StringHelper.isPwdValid(pwd)) { |
| | | return "密码不符合要求"; |
| | | } |
| | | |
| | |
| | | tokenService.setPwdErrCache(ue); |
| | | return "旧密码不正确"; |
| | | } |
| | | if (!StringHelper.checkPwdValid(salt)) { |
| | | if (StringHelper.isPwdInvalid(salt)) { |
| | | return "密码不符合要求"; |
| | | } |
| | | |
| | |
| | | |
| | | try { |
| | | String pwd = RsaHelper.decrypt(newPwd); |
| | | if (!StringHelper.checkPwdValid(pwd)) { |
| | | if (StringHelper.isPwdInvalid(pwd)) { |
| | | return "密码不符合要求"; |
| | | } |
| | | |