| | |
| | | } |
| | | return new Response<>().set(1,false,"密码错误"); |
| | | } |
| | | public Response login2(String userName, String pwd, HttpServletRequest request) { |
| | | String password = ""; |
| | | try { |
| | | password = URLDecoder.decode(pwd, "utf-8"); |
| | | }catch (UnsupportedEncodingException e){ |
| | | e.printStackTrace(); |
| | | } |
| | | public Response login2(String userName, String pwd, HttpServletRequest request) throws UnsupportedEncodingException { |
| | | String password = URLDecoder.decode(pwd, "utf-8"); |
| | | |
| | | String[] dataArr = RSAUtil.decryptFront(password, RSAUtil.fontSeparator); |
| | | //验签md5 |
| | | if(!dataArr[1].equals(ActionUtil.EncryptionMD5(org.apache.commons.lang3.StringUtils.trim(dataArr[0])).toString())){ |