String username,
String password) {
AuthenticationResponse response =
securityService.authenticateUser(username, password);
if (response.isSuccess()) {
Person person = response.getUser().getPerson();
return new Result(true, person.getFirstName(), person.getLastName());
}
else {
return new Result(false, "", "");
}
}