Created
October 19, 2015 19:33
-
-
Save Elrhino/d4501320f5c6d294caea to your computer and use it in GitHub Desktop.
Code snippets from toaster launcher part 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public void confirm(String username, String password) { | |
if (validateCredentials(username, password)) { | |
currentUser.setLoggedIn(true); | |
// TODO: Navigate to another place. | |
} | |
} | |
private boolean validateCredentials(String username, String password) { | |
return username.equals(USERNAME) && password.equals(PASSWORD); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment