SEC-1464: Fix broken test (flags in returned user object were not being copied from stored user).
This commit is contained in:
parent
024e6904ff
commit
3bbbf07235
|
@ -113,8 +113,8 @@ public class InMemoryUserDetailsManager implements UserDetailsManager {
|
|||
throw new UsernameNotFoundException(username);
|
||||
}
|
||||
|
||||
return new User(user.getUsername(), user.getPassword(), user.isEnabled(), true, true, true,
|
||||
user.getAuthorities());
|
||||
return new User(user.getUsername(), user.getPassword(), user.isEnabled(), user.isAccountNonExpired(),
|
||||
user.isCredentialsNonExpired(), user.isAccountNonLocked(), user.getAuthorities());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue