Changed to not detect null returns, as the UserMap will now throw the UsernameNotFoundException.

This commit is contained in:
Ben Alex 2004-03-28 12:16:44 +00:00
parent f203979237
commit d59a5da321

View File

@ -54,12 +54,6 @@ public class InMemoryDaoImpl implements AuthenticationDao, InitializingBean {
public User loadUserByUsername(String username)
throws UsernameNotFoundException, DataAccessException {
User result = userMap.getUser(username);
if (result == null) {
throw new UsernameNotFoundException("User could not be found");
}
return result;
return userMap.getUser(username);
}
}