验证码

This commit is contained in:
baozhipeng
2021-12-24 20:40:07 +08:00
parent 12ffd423c4
commit 0201a69e97
@@ -97,12 +97,12 @@ public class CompanyLoginController {
String realKey = MD5Util.MD5Encode(lowerCaseCaptcha + sysLoginModel.getCheckKey(), "utf-8");
Object checkCode = redisUtil.get(realKey);
//当进入登录页时,有一定几率出现验证码错误 #1714
// if (checkCode == null || !checkCode.toString().equals(lowerCaseCaptcha)) {
// result.error500("验证码错误");
// return result;
// } else {
if (checkCode == null || !checkCode.toString().equals(lowerCaseCaptcha)) {
result.error500("验证码错误");
return result;
} else {
redisUtil.del(realKey);
// }
}
try {
//解密获取密码和用户名
password = CommonUtils.decryptBtRsaPriKey(password, rsaPrivateKey);