提交 b325fce6 编写于 作者: rushui.chen's avatar rushui.chen

20191205 忘记密码修改flag类型

上级 04208c0b
流水线 #18214 已失败 于阶段
in 0 second
...@@ -78,7 +78,7 @@ public class PasswordController extends AccountBaseController { ...@@ -78,7 +78,7 @@ public class PasswordController extends AccountBaseController {
@PostMapping(value = "/reset") @PostMapping(value = "/reset")
public PicaResponse forgetPassword(@RequestBody EncryptEntity entity) throws Exception { public PicaResponse forgetPassword(@RequestBody EncryptEntity entity) throws Exception {
BaseRequest request = CryptoUtil.decrypt(entity, BaseRequest.class); BaseRequest request = CryptoUtil.decrypt(entity, BaseRequest.class);
accountUtils.checkMobilePhoneAndAuthCode(request.getMobile(), AccountTypeEnum.SYSCODE_TYPE_RESET_PASSWORD.getCode() + "", request.getAuthCode()); accountUtils.checkMobilePhoneAndAuthCode(request.getMobile(), "5", request.getAuthCode());
if (StringUtils.isEmpty(request.getPassword())) { if (StringUtils.isEmpty(request.getPassword())) {
throw new AccountException(AccountExceptionEnum.PICA_PASSWORD_ERROR); throw new AccountException(AccountExceptionEnum.PICA_PASSWORD_ERROR);
} }
......
...@@ -166,26 +166,26 @@ public class AESUtil { ...@@ -166,26 +166,26 @@ public class AESUtil {
* 测试 * 测试
*/ */
public static void main(String[] args) throws Exception { public static void main(String[] args) throws Exception {
String KEY="zJJ$c5md3$yuuhWW"; // String KEY="zJJ$c5md3$yuuhWW";
System.out.println("-------------加密---------"); // System.out.println("-------------加密---------");
String content = "13024112588"; // String content = "13024112588";
//
//
System.out.println("加密前:" + content); // System.out.println("加密前:" + content);
System.out.println("加密密钥和解密密钥:" + KEY); // System.out.println("加密密钥和解密密钥:" + KEY);
//
System.out.println("-------------解密---------"); // System.out.println("-------------解密---------");
String encrypt = aesEncrypt(content, KEY); // String encrypt = aesEncrypt(content, KEY);
System.out.println("加密后:" + encrypt); // System.out.println("加密后:" + encrypt);
String decrypt = aesDecrypt("ieE4wN+GkIxm8S8tSVqTow==", KEY); // String decrypt = aesDecrypt("ieE4wN+GkIxm8S8tSVqTow==", KEY);
System.out.println("解密后:" + decrypt); // System.out.println("解密后:" + decrypt);
//请求参数解密处理 //请求参数解密处理
// String key="Vi/4mtanXFW8huqyNi5/XMRWzTkMVFkHCDE53g49ye4AqUsaiKbINdmkFD+g+RyKeS2tEb+6ELukic3GCtZd0wT4iNzK9YVZoMDFQ9JaZwMn0HXSefnSGociozj5hRXHaim3oOuufRKmtJw372rVg4DEVuGLaIpBzdB5wNlaTbY="; String key="CgrnMmUM9WjPiqKBLFOwVDRmC5njCsEGorGgZQhpK3XDtp6KcCJxYVIHsewJAKPEI0szdD\\/ZZOhNsPSRVKfBq9qn1eoH4X8uJ8dcyo+3likLXMBym7OdaTVFB8wS38VUW+opvZccFGHOlifp6PImn0kUuHqmPphTa9O3wTqS2Y0=";
// String decrypt = RSAUtil.decrypt(key,privateKey); String decrypt = RSAUtil.decrypt(key,privateKey);
// System.out.println(decrypt); System.out.println(decrypt);
// String content="lz8KLqk3rWsNLgMxCpuWOb0fQm3s4z6Oej67dYGu5cY="; String content="SVrByJskIR1VjvTiSUW0R+2XW7Qdv/goroyqQQNqEyULvgKPNzpVXSbU1pV97Wrf0BEZXJ/+EDbQcXjggBT9XLjgA8XGyFaZdEsjAoXXBCephMdQdvyLGzdu2z95g/XodHafkAwFtqhn/Fyf8omO1g==";
// String result = AESUtil.aesDecrypt(content, decrypt); String result = AESUtil.aesDecrypt(content, decrypt);
// System.out.println(result); System.out.println(result);
} }
} }
spring.profiles.active=test1 spring.profiles.active=uat
\ No newline at end of file \ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册