master
wangning 6 years ago
parent b5e85a0c7c
commit ff5494efc3

@ -112,11 +112,10 @@ public class SimpleClientApplyServiceImpl implements SimpleClientApplyService {
@Override
public void verifyRegisterSMSCode(String codeKey, String phoneNumber) {
String rediskey = getRegisterClientRedisKey(phoneNumber);
// TODO: 2018/6/1 kira
// String codeValue = stringRedisTemplate.boundValueOps(rediskey).get();
// if (codeValue == null || !codeValue.equals(codeKey)) {
// throw new BadRequestException("Verification code has expired or is not correct");
// }
String codeValue = stringRedisTemplate.boundValueOps(rediskey).get();
if (codeValue == null || !codeValue.equals(codeKey)) {
throw new BadRequestException("Verification code has expired or is not correct");
}
stringRedisTemplate.delete(rediskey);
}

Loading…
Cancel
Save