Skip to content

Instantly share code, notes, and snippets.

@ruohki
Created June 20, 2016 17:28
Show Gist options
  • Save ruohki/8dac80a039de754e794c12ff47839792 to your computer and use it in GitHub Desktop.
Save ruohki/8dac80a039de754e794c12ff47839792 to your computer and use it in GitHub Desktop.
this.get('session').authenticate(authenticator, credentials)
.then(() => {
this.transitionToRoute('protected');
})
.catch((reason) => {
this.set('errorMessage', reason.message);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment