Created
March 17, 2015 16:25
-
-
Save anonymous/1d3814bd45fc1a6fc56a to your computer and use it in GitHub Desktop.
ember.js - getting all form values
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
App.SignInRoute = Ember.Route.extend | |
actions: | |
authenticate: -> | |
@get('adapter').login(@get 'currentUser') | |
.then => | |
@transitionTo 'index' | |
.then null, => | |
@set 'currentUser.error', 'Invalid username or password' | |
model: -> | |
@get 'currentUser' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment