更新readme 素材部分
更新验证码不区分大小写
This commit is contained in:
@@ -70,7 +70,7 @@ public class ValidateCodeServiceImpl implements ValidateCodeService {
|
||||
public boolean check(ValidateCode validateCode){
|
||||
if(!redisUtil.exists(getRedisKey(validateCode.getKey()))) throw new CrmebException("验证码错误");
|
||||
Object redisValue = redisUtil.get(getRedisKey(validateCode.getKey()));
|
||||
if(!redisValue.equals(validateCode.getCode())){
|
||||
if(!redisValue.equals(validateCode.getCode().toLowerCase())){
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user