Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
if (!this.identity.isLoggedIn()) {
this.credentials.setUserId(saleAgent.getLoginName());
this.credentials.setPassword(saleAgent.getPassword());
this.identity.login();
} else {
throw new RuntimeException("Authentication failed");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment