Skip to content

Instantly share code, notes, and snippets.

@Elrhino
Created October 19, 2015 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elrhino/ed4df2e1895d85ee1a79 to your computer and use it in GitHub Desktop.
Save Elrhino/ed4df2e1895d85ee1a79 to your computer and use it in GitHub Desktop.
Code snippets from toaster launcher part 2
@Override
public void confirm(String username, String password) {
if (validateCredentials(username, password)) {
currentUser.setLoggedIn(true);
PlaceRequest placeRequest = new PlaceRequest.Builder()
.nameToken(NameTokens.HOME)
.build();
placeManager.revealPlace(placeRequest);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment