|
@@ -43,7 +43,7 @@ public class UserServiceImpl implements UserDetailsService {
|
|
throw new UsernameNotFoundException("验证码为空");
|
|
throw new UsernameNotFoundException("验证码为空");
|
|
}
|
|
}
|
|
if (code.equals(object.toString())){
|
|
if (code.equals(object.toString())){
|
|
- redisTemplate.opsForValue().set("user_"+username+"_info", JSON.toJSONString(tenant));
|
|
|
|
|
|
+ redisTemplate.opsForValue().set(username+"_info", JSON.toJSONString(tenant));
|
|
return new User(tenant.getTenantPhone(),code,new ArrayList<>());
|
|
return new User(tenant.getTenantPhone(),code,new ArrayList<>());
|
|
}
|
|
}
|
|
throw new UsernameNotFoundException("验证码错误");
|
|
throw new UsernameNotFoundException("验证码错误");
|