验证码
This commit is contained in:
+5
-5
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user