request.getSession(true).setAttribute(Key.userInSession, user);
model.addAttribute("ls", true);
return Key.redirect + Route.dashboard;
} else {
log.info("User Authentication Failed: " + user.getUserName());
throw new AuthenticationFailedException(msg.aFailed, msg.aFailedCode);
}
} else {
throw new AuthCredentialsMissingException(msg.aParamMissing, msg.aParamMissingCode);
}
} catch (Exception e) {