Created
April 14, 2016 20:59
-
-
Save kitlangton/a3e87f137ec60f927239b636a89b706d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
session: Ember.inject.service('session'), | |
sessionAccount: Ember.inject.service(), | |
actions: { | |
authenticate() { | |
let {email, password} = this.getProperties('email', 'password'); | |
this.get('session').authenticate('authenticator:devise', email, password) | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment