This commit is contained in:
77
2024-04-26 00:11:18 +08:00
parent 5b5df5653a
commit ee9932c912
4 changed files with 55 additions and 6 deletions

View File

@@ -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);