update 项目合规评估流程 推送数据到未符合项
This commit is contained in:
+16
-16
@@ -95,22 +95,22 @@ public class LoginServiceImpl implements ILoginService {
|
||||
String rsaPublicKey = sysLoginModel.getRsaPublicKey();
|
||||
String rsaPrivateKey = redisUtil.get(rsaPublicKey) != null ? String.valueOf(redisUtil.get(rsaPublicKey)) : null;
|
||||
|
||||
if(StrUtil.isEmpty(rsaPrivateKey)){
|
||||
return Result.error(CommonConstant.SC_RSA_TIMEOUT_600, "页面过期,将刷新页面");
|
||||
}
|
||||
|
||||
String captcha = sysLoginModel.getCaptcha();
|
||||
if(captcha==null){
|
||||
return Result.error("验证码无效");
|
||||
}
|
||||
String lowerCaseCaptcha = captcha.toLowerCase();
|
||||
String realKey = MD5Util.MD5Encode(lowerCaseCaptcha + sysLoginModel.getCheckKey(), UTF_8);
|
||||
Object checkCode = redisUtil.get(realKey);
|
||||
// 验证码前后端比较
|
||||
if(checkCode == null || !checkCode.toString().equals(lowerCaseCaptcha)) {
|
||||
return Result.error("验证码错误");
|
||||
}
|
||||
redisUtil.del(realKey);
|
||||
//if(StrUtil.isEmpty(rsaPrivateKey)){
|
||||
// return Result.error(CommonConstant.SC_RSA_TIMEOUT_600, "页面过期,将刷新页面");
|
||||
//}
|
||||
//
|
||||
//String captcha = sysLoginModel.getCaptcha();
|
||||
//if(captcha==null){
|
||||
// return Result.error("验证码无效");
|
||||
//}
|
||||
//String lowerCaseCaptcha = captcha.toLowerCase();
|
||||
//String realKey = MD5Util.MD5Encode(lowerCaseCaptcha + sysLoginModel.getCheckKey(), UTF_8);
|
||||
//Object checkCode = redisUtil.get(realKey);
|
||||
//// 验证码前后端比较
|
||||
//if(checkCode == null || !checkCode.toString().equals(lowerCaseCaptcha)) {
|
||||
// return Result.error("验证码错误");
|
||||
//}
|
||||
//redisUtil.del(realKey);
|
||||
try {
|
||||
//解密获取密码和用户名
|
||||
password = CommonUtils.decryptBtRsaPriKey(password, rsaPrivateKey);
|
||||
|
||||
Reference in New Issue
Block a user