Swapped custom auth for component.

This commit is contained in:
Matthew Dillon 2015-03-23 14:17:57 -08:00
parent 8dbd01c7b1
commit 8e37bce7c7
8 changed files with 33 additions and 82 deletions

View file

@ -2,13 +2,5 @@ import Ember from 'ember';
import LoginControllerMixin from 'simple-auth/mixins/login-controller-mixin';
export default Ember.Controller.extend(LoginControllerMixin, {
authenticator: 'authenticators:custom',
actions: {
authenticate: function() {
var _this = this;
this._super().then(null, function(message) {
_this.set('errorMessage', message);
});
}
}
authenticator: 'simple-auth-authenticator:jwt'
});