|
@@ -813,11 +813,10 @@ public class AuthServiceImpl implements AuthService {
|
|
|
//获取用户存在redis中的登录邮箱验证码
|
|
|
String captchaCode = redisUtils.hget(CommonConstant.EMAIL_VERIFY_CODE_KEY + type.value() + CommonConstant.STRING_SIGN_COLON + appId, account);
|
|
|
if(StringUtils.isNotEmpty(code) && code.equals(captchaCode)){
|
|
|
- if(type.value().equals("member_login")){
|
|
|
- return;
|
|
|
+ if(!type.value().equals("member_login")){
|
|
|
+ redisUtils.hdel(CommonConstant.EMAIL_VERIFY_CODE_KEY + type.value() + CommonConstant.STRING_SIGN_COLON + appId, account);
|
|
|
}
|
|
|
//验证通过删除
|
|
|
- redisUtils.hdel(CommonConstant.EMAIL_VERIFY_CODE_KEY + type.value() + CommonConstant.STRING_SIGN_COLON + appId, account);
|
|
|
}else{
|
|
|
throw new BackendRuntimeException(ExceptionEnum.EMAIL_VERIFY_CODE_KEY_ERROR);
|
|
|
}
|