Skip to content

Instantly share code, notes, and snippets.

@renaro
Last active October 19, 2016 03:02
Show Gist options
  • Save renaro/eee92e4886fb46a801c5c755a41db12f to your computer and use it in GitHub Desktop.
Save renaro/eee92e4886fb46a801c5c755a41db12f to your computer and use it in GitHub Desktop.
public void loginFlow(String email, String password){
boolean isCorrectCredentials = validateCredentials(email, password);
if(isCorrectCredentials){
login();
} else {
// whatever
}
}
public boolean validateCredentials(String email, String password){
return server.validateCredentials(email, password);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment