Skip to content

Instantly share code, notes, and snippets.

@abstractj
Forked from sebastienblanc/gist:6411121
Created September 2, 2013 11:57
Show Gist options
  • Save abstractj/6412105 to your computer and use it in GitHub Desktop.
Save abstractj/6412105 to your computer and use it in GitHub Desktop.
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