Skip to content

Instantly share code, notes, and snippets.

@kitlangton
Created April 14, 2016 20:59
Show Gist options
  • Save kitlangton/a3e87f137ec60f927239b636a89b706d to your computer and use it in GitHub Desktop.
Save kitlangton/a3e87f137ec60f927239b636a89b706d to your computer and use it in GitHub Desktop.
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