SEC-1464: Fix broken test (flags in returned user object were not being copied from stored user).

This commit is contained in:
Luke Taylor 2010-04-25 20:12:00 +01:00
parent 024e6904ff
commit 3bbbf07235
1 changed files with 2 additions and 2 deletions

View File

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