init
This commit is contained in:
@@ -271,7 +271,7 @@ public class LoginManager {
|
||||
String key = String.format(RedisHttpConstant.RESET_PASSWORD_CHECK_REDIS, token);
|
||||
RBucket<String> bucket = redissonClient.getBucket(key);
|
||||
String value = bucket.get();
|
||||
if(StringUtils.isEmpty(value) || value.equals(mobile)){
|
||||
if(StringUtils.isEmpty(value) || !value.equals(mobile)){
|
||||
throw new ServiceException("验证码已过期");
|
||||
}
|
||||
userService.resetPassword(user.getId(),password);
|
||||
|
||||
Reference in New Issue
Block a user