Created
June 20, 2016 17:28
-
-
Save ruohki/8dac80a039de754e794c12ff47839792 to your computer and use it in GitHub Desktop.
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
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